Skip to content

Fix vue/no-lone-template violations

Mark Florian requested to merge fix-vue-no-lone-template into master

What does this MR do?

Fix vue/no-lone-template violations

This rule aims to eliminate unnecessary and potentially confusing lone <template> tags in Vue components.

In Vue.js 2.x, <template> elements that have no specific directives have no effect.

In Vue.js 3.x, <template> elements that have no specific directives render <template> DOM elements as is, but in most cases this may not be what is intended.

Part of #297218 (closed).

Note

This MR is probably best viewed by unchecking Show whitespace changes.

Screenshots (strongly suggested)

n/a

Does this MR meet the acceptance criteria?

Conformity

Edited by Mark Florian

Merge request reports

Loading