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

[Roadmap] Milestone 3.0 (TBD)

Open Rel1cx opened this issue 3 months ago • 0 comments

System Requirements

Minimum supported versions:

  • [ ] Node.js: 24.8.0
  • [x] ESLint: 9.36.0
  • [x] TypeScript: 5.0.0

New Rules

  • [ ] react-x/set-state-in-effect - Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
    A fast implementation of set-state-in-effect that doesn't require React Compiler integration
  • [ ] react-x/set-state-in-render - Validates against setting state during render, which can trigger additional renders and potential infinite render loops
    A fast implementation of set-state-in-render that doesn't require React Compiler integration
  • [ ] react-x/static-components - Validates that components are static, not recreated every render
    A fast implementation of static-components that doesn't require React Compiler integration
  • [ ] react-x/component-hook-factories - Validates against higher order functions defining nested components or hooks
    A fast implementation of component-hook-factories that doesn't require React Compiler integration
  • [ ] react-x/function-component-definition - Enforces the definition of function components (Rel1cx/eslint-react#739)

Deprecated Rules

  • [ ] react-hooks-extra/no-direct-set-state-in-use-effect - Replaced by react-x/set-state-in-effect (TBD)

Rel1cx avatar Sep 24 '25 20:09 Rel1cx