We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Checklist
Tell us about your environment
Please show your full configuration:
module.exports = { extends: [ '@vue/typescript/recommended', 'eslint:recommended', 'plugin:vue/vue3-recommended', ], rules: { // override/add rules settings here, such as: // 'vue/no-unused-vars': 'error' }, };
What did you do?
<script setup lang="ts"> import { computed, ref, toRefs } from 'vue'; const props = defineProps<{ msg: string }>(); const { msg: msgProp } = toRefs(props); const msg = computed(() => msgProp.value || 'hello'); </script>
This is similar to #2189 but with a renamed prop in destructuring assignment.
What did you expect to happen? No errors.
What actually happened?
/src/components/HelloWorld.vue 8:7 error Duplicated key 'msg' vue/no-dupe-keys
✖ 1 problem (1 error, 0 warnings)
Repository to reproduce this issue
https://stackblitz.com/edit/vitejs-vite-49r5se?file=src%2Fcomponents%2FHelloWorld.vue
The text was updated successfully, but these errors were encountered:
This is actually a valid warning of the no-dupe-keys rule: You have both a prop and a computed variable with the same name.
no-dupe-keys
Sorry, something went wrong.
I see, the problem is both could be referred to with the same name in template. Thanks
No branches or pull requests
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
This is similar to #2189 but with a renamed prop in destructuring assignment.
What did you expect to happen?
No errors.
What actually happened?
/src/components/HelloWorld.vue
8:7 error Duplicated key 'msg' vue/no-dupe-keys
✖ 1 problem (1 error, 0 warnings)
Repository to reproduce this issue
https://stackblitz.com/edit/vitejs-vite-49r5se?file=src%2Fcomponents%2FHelloWorld.vue
The text was updated successfully, but these errors were encountered: