v-slot-style
Angular templatesHTMLVue / SvelteVue / Sveltestylefix: safedefault: warnhtml/eslint-plugin-vue-recommended
What it does
Section titled “What it does”Reports v-slot: where the shorthand # would do (v-slot:head). The fix writes #.
Why it matters
Section titled “Why it matters”One form keeps the templates uniform and shorter.
To fix, write #; the fix does it.
Example
Section titled “Example”... :ok="1"... <template v-slot:head>h</template> <template v-slot="p">d</template> </MyCard> <svg :viewBox="v"></svg>...... :ok="1"... <template #head>h</template> <template v-slot="p">d</template> </MyCard> <svg :viewBox="v"></svg>...Configuration
Section titled “Configuration”angular: lint: rules: v-slot-style: warn # off, warn (default), errorhtml: lint: rules: v-slot-style: warn # off, warn (default), errorsvelte: lint: rules: v-slot-style: warn # off, warn (default), errorvue: lint: rules: v-slot-style: warn # off, warn (default), errorEnabled by the presets: html/eslint-plugin-vue-recommended.
Suppress one line with sudsy-disable-next-line v-slot-style in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| eslint-plugin-vue | v-slot-style |
full |