Skip to content
New issue

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

vue/no-unused-properties -- reports properties of type 'never' as unused. #2545

Open
Pentadome opened this issue Sep 4, 2024 · 1 comment

Comments

@Pentadome
Copy link

Pentadome commented Sep 4, 2024

What did you do?

<script setup lang="ts">
interface MyTextAreaInput extends /* @vue-ignore */ TextareaHTMLAttributes {
  // prevent accidentally using min/max instead of minlength/maxlength
  min?: never; // <- 'min' of property found, but never used.
  max?: never; // <- 'max' of property found, but never used.
}
defineProps<MyTextAreaInput>()

</script>

I realize it is very unusual to use type never as a prop type. So not very important issue.

@FloEdelmann
Copy link
Member

I guess that could be a small improvement (if the types are known because typescript-eslint's parser is used). PR welcome for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants