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
Tell us about your environment
Please show your full configuration:
module.exports = { root: true, env: { node: true, }, extends: [ 'plugin:vue/vue3-essential', '@vue/airbnb', '@vue/typescript/recommended', ], parserOptions: { ecmaVersion: 2020, }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-undef': 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'import/prefer-default-export': 'off', 'import/extensions': 'off', 'import/no-unresolved': 'off', 'no-shadow': 'off', semi: 'off', 'vue/no-undef-properties': 'warn', }, };
What did you do?
<script setup lang="ts"> import { ref, watch, } from 'vue'; import type { TestComponentProps } from './types'; const props = defineProps<TestComponentProps>(); const counter = ref(0); watch(() => props.msg, () => { counter.value += 1; }, { immediate: true, }); </script> <template> <div>{{ msg }}</div> <div>Changes: {{ counter }}</div> </template>
What did you expect to happen? No vue/no-undef-properties error thrown!
What actually happened? ESLint: 'msg' is not defined.(vue/no-undef-properties)
Repository to reproduce this issue https://github.com/tragid/vue-default-export-error
The text was updated successfully, but these errors were encountered:
Thank you for posting this issue and sharing the repository.
It seems like a bug. I will fix it in the next release.
Sorry, something went wrong.
vue/no-undef-properties
Successfully merging a pull request may close this issue.
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
No vue/no-undef-properties error thrown!
What actually happened?
ESLint: 'msg' is not defined.(vue/no-undef-properties)
Repository to reproduce this issue
https://github.com/tragid/vue-default-export-error
The text was updated successfully, but these errors were encountered: