eslint-plugin-react
eslint-plugin-react copied to clipboard
[Fix] catch JSX fragments with propElementValues
Bug report: #3951
This proposed fix treats JSX fragments like JSX elements when handling the propElementValues option:
- It checks for unnecessary curly brackets in JSX fragments just like it does in JSX elements
- It considers JSX fragment when checking and reporting missing curly brackets
Let me know what you think, happy to update the code with any suggestions you have!