Enforces that all withGlobal arguments have recommended names. (teactn/withGlobal-prefer-named-arguments)
teactn withGlobal function has 2 optional arguments:
- mapStateToProps
- mapReducersToProps
This rule enforces that all of the provided parameters should follow the above naming conventions.
The following patterns are considered incorrect:
withGlobal(mapStateToProps, actionCreators)(TodoApp)withGlobal(global => global)(TodoApp)The following patterns are considered correct:
withGlobal(mapStateToProps, mapReducersToProps)(TodoApp)withGlobal()(TodoApp)