| pageClass | rule-details |
|---|---|
| sidebarDepth | 0 |
| title | vue/no-deprecated-slot-scope-attribute |
| description | disallow deprecated `slot-scope` attribute (in Vue.js 2.6.0+) |
| since | v6.1.0 |
disallow deprecated
slot-scopeattribute (in Vue.js 2.6.0+)
- ⚙️ This rule is included in all of
"plugin:vue/vue3-essential",*.configs["flat/essential"],"plugin:vue/vue3-strongly-recommended",*.configs["flat/strongly-recommended"],"plugin:vue/vue3-recommended"and*.configs["flat/recommended"]. - 🔧 The
--fixoption on the command line can automatically fix some of the problems reported by this rule.
This rule reports deprecated slot-scope attribute in Vue.js v2.6.0+.
<template>
<ListComponent>
<!-- ✓ GOOD -->
<template v-slot="props">
{{ props.title }}
</template>
</ListComponent>
<ListComponent>
<!-- ✗ BAD -->
<template slot-scope="props">
{{ props.title }}
</template>
</ListComponent>
</template>This rule was introduced in eslint-plugin-vue v6.1.0