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

Upgrade vue-eslint-parser to 6.0.0 cause valid-v-bind false negative #46

Closed
xcatliu opened this issue May 28, 2019 · 1 comment
Closed
Labels

Comments

@xcatliu
Copy link

xcatliu commented May 28, 2019

Tell us about your environment

  • ESLint version: 5.16.0
  • eslint-plugin-vue version: 5.2.2
  • Node version: 10.13.0

Please show your full configuration:

module.exports = {
  parser: 'vue-eslint-parser',
  plugins: ['vue'],
  rules: {
    // override/add rules settings here, such as:
    // 'vue/no-unused-vars': 'error'
    'vue/valid-v-bind': 'error'
  }
}

What did you do?

<!-- bad 语法错误的 v-bind -->
<template>
  <div>
    <div v-bind />
    <div :aaa />
    <div :aaa.bbb="foo" />
  </div>
</template>

What did you expect to happen?
I expect to have errors after upgrade vue-eslint-parser to 6.0.0

What actually happened?

No errors

I created a repo for this issue: https://github.com/xcatliu/test-eslint-vue

@mysticatea
Copy link
Member

mysticatea commented May 28, 2019

Because that major version has some breaking changes to support dynamic attribute names. It's the reason for the major version rather than minor/patch.

eslint-plugin-vue has been updated but not released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants