react-hooks/set-state-in-effect
eslint-plugin-react-hooks
import reactHooks from "eslint-plugin-react-hooks";
export default [
{
plugins: { "react-hooks": reactHooks },
rules: {
"react-hooks/set-state-in-effect": "error",
},
},
];