react-hooks/hooks
eslint-plugin-react-hooks
import reactHooks from "eslint-plugin-react-hooks";
export default [
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/hooks": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
react-hooks/hooks
eslint-plugin-react-hooks
import reactHooks from "eslint-plugin-react-hooks";
export default [
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/hooks": "error",
},
},
];react/hooks
react plugin · suspicious
{
"plugins": [
"react"
],
"rules": {
"react/hooks": "error"
}
}Biome does not have this rule.
Validates that effect dependencies are exhaustive and without extraneous values
Validates against calling capitalized functions/methods instead of using JSX
Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See useMemo() docs for more information.
Validates against deriving values from state in an effect
Validates against suppression of other rules