-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add Rule option "disallowedFor" for component prop #3422
Comments
Since it's marked as deprecated with jsdoc, there's Why can't you just remove it and make a major bump? |
Hello, I would also like this: my use case is for discouraging the usage of props in components that I don't control, and thus can't annotate or alter the component myself. Specifically, I want to disallow the I could wrap I want to be able to mark props as disallowed in libraries that I don't control, and |
@cincodenada you can prevent them from using the original component using That said, thanks, that is a reasonable use case. |
Suppose we have a component that accept a prop named string.
As needs change, we need to replace string prop by another named number.
The string prop will works in a period of time, but it's better to replace it with number prop.
This rule option can be use to avoid using deprecated prop for Comp.
The text was updated successfully, but these errors were encountered: