eslint-plugin-vue
eslint-plugin-vue copied to clipboard
fix(no-deprecated-slot-attribute): no fix for dynamic components
Warning: I made this PR on top of https://github.com/vuejs/eslint-plugin-vue/pull/2529 but I needed to open a PR against the
master
branch for it to show up in this repo
The #slot
syntax doesn't work when passed into a native HTML <div>
element for obvious reasons.
However, the old slot="name"
syntax works... Demo
This can happen (and has happened in my work project) when a dynamic component renders a div
to fallback when certain conditions aren't met: