Closed
Description
Checklist
- I have tried restarting my IDE and the issue persists.
- I have read the FAQ and my problem is not listed.
Tell us about your environment
- ESLint version: 8.45.0
- eslint-plugin-vue version: 9.15.1
- Node version: 18
- Operating System: MacOS M1
Please show your full configuration:
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"plugin:vue/vue3-recommended",
"plugin:vuejs-accessibility/recommended",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"prettier/prettier": "warn",
},
};
What did you do?
<script setup lang="ts">
import { debounce } from "lodash"; // <-- error thrown on this line
type Props = {
/** delay for debounce in ms */
debounce?: number;
};
const props = defineProps<Props>();
console.log(props.debounce); // i'm using the prop like this, not with any destructuring
</script>
What did you expect to happen?
These two names are in different contexts, and don't refer to the same thing. I'm not sure if this is expected behavior, but if it is, I find that a little weird, because they don't really conflict.
Repository to reproduce this issue
dupe keys.zip