Closed mikeerickson closed 3 years ago
This is unrelated to this lib but eslint config generated by vue cli. Please open an issue in vue cli repo.
While I am sure nobody else will come here for this issue, I figured I would share what adjustment I had to make to the eslintrc.js
setting to remove the error. I just had to add the legacyDecorators: true
option as below and all was happy
...
parserOptions: {
parser: "babel-eslint",
ecmaFeatures: {
legacyDecorators: true
}
}
...
I am trying to use this with fresh app created using VueCLI and am running into the following error. I can't track down where this setting needs to be applied to the
.eslintrc.js
file (the default one created by VueCLI)If you want to reproduce, simply create a fresh project using VueCLI (using default eslint, etc.)
Then install
vue-class-component
and use the sample.vue
component from docsProduces the following error