hyper/lib/actions/index.js
David Gómez 8f28573fc0 Prefer default export to make XO happy (#931)
* Comply with prefer-default-export rule for findBySession function

* Remove XO's prefer-default-export rule

* Comply with prefer-default-export rule for init function

* Comply with prefer-default-export rule for getRootGroups function

* Comply with prefer-default-export rule for INIT constant

* Comply with prefer-default-export rule for isExecutable function

* Fix default export for constants

* Comply with prefer-default-export rule for last function

* Comply with prefer-default-export rule for getColorList function
2016-10-25 14:53:15 +02:00

13 lines
220 B
JavaScript

import rpc from '../rpc';
import INIT from '../constants';
export default function init() {
return dispatch => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init');
}
});
};
}