Allow a custom message with forbid props #2615
Hi team! When considering using the forbid-component-props and forbid-dom-props rules, an early topic of discussion was whether or not it would be possible to provide a custom error message. This gives the user a chance to better explain why the prop is forbidden, and possible offer an alternative, or best practice, etc.
This PR aims to add custom messaging functionality to both rules of these rules. Let me know if such an enhancement is something you would consider adding and I'm happy to make improvements on it and take any suggestions! Thanks!
…sage with forbid props Co-authored-by: Mangesh Tamhankar <firstname.lastname@example.org> Co-authored-by: Jordan Harband <email@example.com>