eslint-plugin-vue
eslint-plugin-vue copied to clipboard
false negative of `vue/no-mutating-props` when mutating destructured prop
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: 9.9.1
- eslint-plugin-vue version: 9.28.0
- Vue version: 3.5.1
- Node version: 22.8.0
- Operating System: Windows 11
Please show your full configuration: https://github.com/n0099/open-tbm/blob/fec399a0c9e462c77aaf5e6d5a081529428d8597/fe/eslint.config.js
What did you do? https://github.com/n0099/open-tbm/blob/fec399a0c9e462c77aaf5e6d5a081529428d8597/fe/src/components/post/queryForm/QueryForm.vue#L241
What did you expect to happen?
Reporting as the default value of option shallowOnly for this rule is false.
What actually happened?
Not reporting unless referencing from the original props.queryFormDeps
- uniqueParams.value.postTypes.value = from; // to prevent empty post types
+ props.queryFormDeps.uniqueParams.value.postTypes.value = from; // to prevent empty post types
Repository to reproduce this issue https://github.com/n0099/open-tbm/blob/fec399a0c9e462c77aaf5e6d5a081529428d8597/fe