eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[Fix] catch JSX fragments with propElementValues

Open mfigard opened this issue 2 months ago • 1 comments

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!

mfigard avatar Sep 17 '25 11:09 mfigard