Regression with props destructuring and optional props between 10.0.0 and 10.1.0 #2741
Open
2 tasks done
Labels
needs repro
Need a repository that can reproduce the problem, or a link to DEMO.
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
No warning when running
npm run lint
or inside the VS CodeWhat actually happened?
Warning when running
npm run lint
and inside the VS Code.Just updated from 10.0.0 where I had no eslint error to 10.1.0, and now I have
vue/require-default-prop
popping everywhere.If I add the default value, eslint will then complain the the variable are unused since they are only used in the template and not the script part.
Before:

After:

Relates to #2475
Repository to reproduce this issue
https://codesandbox.io/p/devbox/relaxed-dirac-q6tgzp?file=%2Fcomponents%2FUButton.vue
Run
npm run lint
to see the warnings.Downgrade to 10.0.0, run again.
There are no warnings.
The text was updated successfully, but these errors were encountered: