no-deprecated-slot-scope-attribute
Angular templatesHTMLVue / SvelteVue / Sveltecorrectnessno fixdefault: warnhtml/eslint-plugin-vue-recommended
What it does
Section titled “What it does”Reports the slot-scope attribute.
Why it matters
Section titled “Why it matters”Vue 3 removed it, so the slot props are not passed to the content.
To fix, use v-slot (#name="props").
Example
Section titled “Example”<template>... <template scope="p" slot-scope="q" functional></template> <tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr></template>Configuration
Section titled “Configuration”angular: lint: rules: no-deprecated-slot-scope-attribute: warn # off, warn (default), errorhtml: lint: rules: no-deprecated-slot-scope-attribute: warn # off, warn (default), errorsvelte: lint: rules: no-deprecated-slot-scope-attribute: warn # off, warn (default), errorvue: lint: rules: no-deprecated-slot-scope-attribute: warn # off, warn (default), errorEnabled by the presets: html/eslint-plugin-vue-recommended.
Suppress one line with sudsy-disable-next-line no-deprecated-slot-scope-attribute 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 | no-deprecated-slot-scope-attribute |
full |