Skip to content

Conversation

@haricnugraha
Copy link

Introduces a custom ESLint plugin to enforce React performance best practices by preventing "render helpers" inside component bodies.

Changes

  • New Plugin: Added eslint-plugin-react-strict-structure with the rule no-inline-jsx-functions.
  • The Rule: Errors when a function returning JSX is defined inside another component.
  • Configuration: Integrated the plugin into the base eslint-config as an error.

Screenshot

Screenshot 2025-12-23 at 6 06 11 PM

@haricnugraha haricnugraha changed the title Feat: Add a custom ESLint plugin to prevent inline function that return JSX in a component Feat: Add a custom ESLint plugin to prevent inline JSX function Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants