Add react/no-object-type-as-default-prop
to react/recommended
#3863
Open
Description
I propose to add the rule react/no-object-type-as-default-prop
at least with warning
if not error
to the react/recommended
set.
Reason: I don't see a good reason not to enable it. It helps you not to fall into the trap of endless rendering. I even had a case where I wrote a component which just seemed to fail in my test environment, but just because this was the only place I didn't set the prop which had an object as default.
If you see a reason not to enable this, I'm thrilled to hear!