vuejs/vue-eslint-parser

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

xcatliu opened this issue · 1 comments

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

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.