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