vuejs / vue-eslint-parser

The ESLint custom parser for `.vue` files.
MIT License
435 stars 74 forks source link

Support for Vue.js 3.4 #212

Closed ota-meshi closed 6 months ago

ota-meshi commented 7 months ago
ota-meshi commented 6 months ago

related to https://github.com/vuejs/eslint-plugin-vue/issues/2326

grandsong commented 6 months ago

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

bodograumann commented 6 months ago

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.