-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
System Requirements
Minimum supported versions:
- Node.js: 24.8.0
- ESLint: 9.36.0
- TypeScript: 5.0.0
New Rules
-
react-x/set-state-in-effect- Validates against callingsetStatesynchronously 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 byreact-x/set-state-in-effect(TBD)
mcmxcdev, SukkaW, pete-willard and possum-enjoyer
Metadata
Metadata
Assignees
Labels
No labels