react-hooks/capitalized-calls
eslint-plugin-react-hooks
import reactHooks from "eslint-plugin-react-hooks";
export default [
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/capitalized-calls": "error",
},
},
];Validates against calling capitalized functions/methods instead of using JSX
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/capitalized-calls
eslint-plugin-react-hooks
import reactHooks from "eslint-plugin-react-hooks";
export default [
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/capitalized-calls": "error",
},
},
];react/capitalized-calls
react plugin · suspicious
{
"plugins": [
"react"
],
"rules": {
"react/capitalized-calls": "error"
}
}Biome does not have this rule.
Validates that effect dependencies are exhaustive and without extraneous values
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