Skip to content

no-deprecated-slot-scope-attribute

Reports the slot-scope attribute.

Vue 3 removed it, so the slot props are not passed to the content.

To fix, use v-slot (#name="props").

Reported
<template>
...
<template scope="p" slot-scope="q" functional></template>
<tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr>
</template>
angular:
lint:
rules:
no-deprecated-slot-scope-attribute: warn # off, warn (default), error
html:
lint:
rules:
no-deprecated-slot-scope-attribute: warn # off, warn (default), error
svelte:
lint:
rules:
no-deprecated-slot-scope-attribute: warn # off, warn (default), error
vue:
lint:
rules:
no-deprecated-slot-scope-attribute: warn # off, warn (default), error

Enabled 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.

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