-
-
Notifications
You must be signed in to change notification settings - Fork 681
Ignore <template>
in vue/html-self-closing
rule
#2202
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
Comments
Hmm, I'm not sure why Note that there is the (recommended) |
This is a problem when you use <script setup lang="ts">
</script>
<template>
</template> and having it to self-close the As there is |
I think that top-level block tags should just all be excluded in However, I don't think that other |
What about excluding |
No, rules should be independent, i.e. they should not be influenced by which other rules are enabled. I still don't get why |
Something like |
Or |
As I said previously, top-level block tags should just all be excluded (without options). A pull request is welcome for this change. |
What rule do you want to change?
vue/html-self-closing
Does this change cause the rule to produce more or fewer warnings?
N/A
How will the change be implemented? (New option, new default behavior, etc.)?
Either by default or add an option to ignore
<template>
the same way<style>
and<script>
tags are ignored. Empty<template>
tags don't make sense and should either be fully-removed from the Vue template by the engineer or left alone (if that's the way the engineer prefers it).Please provide some example code that this change will affect:
What does the rule currently do for this code?
<template />
What will the rule do after it's changed?
It would leave the code unaffected.
Additional context
N/A
The text was updated successfully, but these errors were encountered: