Enforces that connect function is provided with at least 2 arguments. (react-redux/connect-prefer-minimum-two-arguments)
If you do not supply your own mapDispatchToProps function or object full of action creators, the default mapDispatchToProps implementation just injects dispatch into your component’s props.
This rule enforces that the second argument is provided explicitly.
The following pattern is considered incorrect:
connect(mapStateToProps)(Component)
The following patterns are considered correct:
connect(mapStateToProps, mapDispatchToProps, mergeProps)(Component)
connect(mapStateToProps, mapDispatchToProps)(Component)