Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⭐️New: Add vue/no-deprecated-slot-scope-attribute rule #840

Merged
merged 4 commits into from Dec 26, 2019

Conversation

ota-meshi
Copy link
Member

vue/no-deprecated-slot-scope-attribute 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>

refs #800 (comment)

@ota-meshi ota-meshi force-pushed the add-rule/no-deprecated-slot-scope-attribute branch from 9195bf8 to c9afae4 Compare April 2, 2019 03:17
@ota-meshi ota-meshi self-assigned this Apr 2, 2019
@lianghx-319
Copy link

I need this rule too. Because I dont want my team use old slot in vue 2.6.x version.

@sybrendotinga
Copy link

@ota-meshi any updates on this? We would love to use this great improvement!

@ota-meshi ota-meshi merged commit a5fd31e into master Dec 26, 2019
@ota-meshi ota-meshi deleted the add-rule/no-deprecated-slot-scope-attribute branch December 26, 2019 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants