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

Support for Vue.js 3.4 #212

Closed
1 of 2 tasks
ota-meshi opened this issue Nov 27, 2023 · 3 comments · Fixed by #215
Closed
1 of 2 tasks

Support for Vue.js 3.4 #212

ota-meshi opened this issue Nov 27, 2023 · 3 comments · Fixed by #215

Comments

@ota-meshi
Copy link
Member

ota-meshi commented Nov 27, 2023

  • v-bind shorthand for key and value with the same name (added in v3.4.0-alpha.2)
  • defineModel()
@ota-meshi
Copy link
Member Author

related to vuejs/eslint-plugin-vue#2326

@grandsong
Copy link

I want "v-bind shorthand" very much! I'm looking forward to this support!

@bodograumann
Copy link

Will this solve "defined but never used" errors in the following examples?

v-slot

<router-link custom v-slot="{ href }">
  <a :href>
</router-link>

triggers unused-imports/no-unused-vars.

v-for

<div v-for="(label, idx) of items" :key="idx">
  <MyButton :label />
</div>

triggers vue/no-unused-vars.

data

<template>
  <MyButton :label />
</template>

<script setup>
const label = "some text";
</script>

triggers vue/no-unused-vars.

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 a pull request may close this issue.

3 participants