Skip to content

v-bind shorthand don’t work with 9.20 #2365

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

Closed
matteo6b opened this issue Jan 12, 2024 · 8 comments
Closed

v-bind shorthand don’t work with 9.20 #2365

matteo6b opened this issue Jan 12, 2024 · 8 comments

Comments

@matteo6b
Copy link

matteo6b commented Jan 12, 2024

Checklist

  • [x ] I have tried restarting my IDE and the issue persists.
  • [x ] I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 8.56.0
  • eslint-plugin-vue version: 9.20.0
  • Node version: 20.9.0
  • Operating System: windows

Please show your full configuration:


module.exports = {
  root: true,
  plugins: ['vuejs-accessibility'],
  extends: [
    'plugin:vue/vue3-recommended',
    'eslint:recommended',
    '@vue/eslint-config-typescript',
    '@vue/eslint-config-prettier/skip-formatting',
    'plugin:vuejs-accessibility/recommended'
  ],
   parser: "vue-eslint-parser",
  parserOptions: {
    ecmaVersion: 'latest'
  }
}

What did you do?

 <Modal  :id="id" v-model="showModal"  :id-screen /> 

What did you expect to happen?
No errors with v-bind shorthand

What actually happened?
v-bind is missing expression.vue(34)

@FloEdelmann
Copy link
Member

Which Vue.js version are you using?

@matteo6b
Copy link
Author

"vue": "3.4.7",

@FloEdelmann
Copy link
Member

v-bind is missing expression.vue(34)

This message was not reported by ESLint or eslint-plugin-vue. Maybe it's only an editor warning? Did you try restarting your IDE?

@matteo6b
Copy link
Author

v-bind is missing expression.vue(34)

This message was not reported by ESLint or eslint-plugin-vue. Maybe it's only an editor warning? Did you try restarting your IDE?

yes

@FloEdelmann
Copy link
Member

Then please provide a reproduction repository or Stackblitz, so we can try to debug the issue.

@FloEdelmann FloEdelmann added the needs repro Need a repository that can reproduce the problem, or a link to DEMO. label Jan 12, 2024
@matteo6b
Copy link
Author

@FloEdelmann FloEdelmann added bug and removed needs repro Need a repository that can reproduce the problem, or a link to DEMO. labels Jan 12, 2024
@matteo6b
Copy link
Author

I believe that message is coming from Vue Language Tools rather than ESLint. See vuejs/language-tools#3830.

@FloEdelmann
Copy link
Member

Yes that makes sense. Thank for linking that issue. I'll close this one then.

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

No branches or pull requests

2 participants