You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to happen?
I don't know how the rule evaluates the Typescript props definition, but it should enumerate the possible keys of the type of the props and count the unique keys. Evidently, it doesn't do this currently.
What actually happened?
ESLint: Component has too many props (8). Maximum allowed is 5.(vue/ max-props)
Repository to reproduce this issue
See the documentation page linked above, just paste the snippet in the first code box.
The text was updated successfully, but these errors were encountered:
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
I'm trying to use a discriminated union for the type of my props. Here's a real-life example:
For all intents and purposes, I would argue this component defines six props:
items
disabled
defaultValue
orientation
multiple
nonCollapsible
The max-props rule, however, counts eight.
Here's a simplified example that can also be verified on the rule's documentation page:
What did you expect to happen?
I don't know how the rule evaluates the Typescript props definition, but it should enumerate the possible keys of the type of the props and count the unique keys. Evidently, it doesn't do this currently.
What actually happened?
ESLint: Component has too many props (8). Maximum allowed is 5.(vue/ max-props)
Repository to reproduce this issue
See the documentation page linked above, just paste the snippet in the first code box.
The text was updated successfully, but these errors were encountered: