Navigation Menu

Skip to content
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

Add vue/no-lone-template rule #1238

Merged
merged 1 commit into from Jul 14, 2020
Merged

Conversation

ota-meshi
Copy link
Member

This PR adds vue/no-lone-template rule.

vue/no-lone-template rule that disallow unnecessary <template> element.
This rule reports <template> elements that have no specific directives (v-if, v-else, v-else-if, v-for, v-slot, slot, slot-scope and scope).

Note: slot and slot-scope are deprecated in Vue.js 2.6, scope is deprecated in Vue.js 2.5.

The name of the this rule was inspired by no-lone-blocks.

close #567

@ota-meshi ota-meshi self-assigned this Jul 9, 2020
@ota-meshi ota-meshi merged commit cc8450d into master Jul 14, 2020
@ota-meshi ota-meshi deleted the add-rule/no-lone-template-tag branch July 14, 2020 02:41
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.

Rule Proposal: no unnecessary template
1 participant