vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.39k stars 652 forks source link

bind `:=` syntax error on `Windows` #2453

Closed BachiMjavanadze closed 2 months ago

BachiMjavanadze commented 2 months ago

In my Vue.js project (latest version) this makes error:

<script setup>
let imageInfo = {
    src: "https:/myImg.jpg",
    alt: "my img",
    width: 400
};
</script>

<template>
    <img :="imageInfo">
</template>

it does not likes := syntax. error msg is:

'imageInfo' is assigned a value but never used no-unused-vars.

I've disabled this error in .eslintrc.js:

"no-unused-vars": "off"

but it does not helps.

If I use imageInfo inside <script>, like this console.log(imageInfo) then error disappears.

in Reprodaction page it works but on my windows PC it has error (latest Windows).

FloEdelmann commented 2 months ago

Please open a new issue following the "Bug report" template, so we can better track your problem. But I guess it might be a duplicate of #2206, then please see https://github.com/vuejs/eslint-plugin-vue/issues/2206#issuecomment-1578437723 specifically.