React
43 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled React rules match this search.
-
react/rules-of-hooksenforces the Rules of Hooks
-
react/self-closing-compDisallow extra closing tags for components without children
-
react/set-state-in-effectValidates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
-
react/set-state-in-renderValidates against setting state during render, which can trigger additional renders and potential infinite render loops
-
react/static-componentsValidates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
-
react/style-prop-objectEnforce style prop value is an object
-
react/syntaxValidates against invalid syntax
-
react/unsupported-syntaxValidates against syntax that we do not plan to support in React Compiler
-
react/use-memoValidates usage of the useMemo() hook against common mistakes. See
useMemo()docs for more information. -
react/void-dom-elements-no-childrenDisallow void DOM elements (e.g.
<img />,<br />) from receiving children -
react/void-use-memoValidates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See
useMemo()docs for more information.