I know I can disable the file or disable the line, but I want to do it globally for now so I don't have to write that in every time I want to use a useEffect as a componentDidMount().
I have tried:
{
"plugins": [
// ...
"react-hooks"
],
"rules": {
// ...
"react-hooks/rules-of-hooks": "off"/0, // tried each
"react-hooks/exhaustive-deps": "off"/0 // tried each
},
"overrides": [
{
"files": ["**/*.js"],
"rules": {
"react-hooks/rules-of-hooks": "off"/0, // tried each
"react-hooks/exhaustive-deps": "off"/0 // tried each
}
}
]
}