From 9ae814dfe45426f8df9b89b305392770344a7d50 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 17 Sep 2017 08:59:12 +0900 Subject: more strict lint --- src/actions/console.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/actions/console.js') diff --git a/src/actions/console.js b/src/actions/console.js index 99a46e8..e0ec631 100644 --- a/src/actions/console.js +++ b/src/actions/console.js @@ -1,28 +1,30 @@ import actions from '../actions'; -export function showCommand(text) { +const showCommand = (text) => { return { type: actions.CONSOLE_SHOW_COMMAND, text: text }; -} +}; -export function setCompletions(completions) { - return { +const setCompletions = (completions) => { + return { type: actions.CONSOLE_SET_COMPLETIONS, completions: completions }; -} +}; -export function showError(text) { +const showError = (text) => { return { type: actions.CONSOLE_SHOW_ERROR, text: text }; -} +}; -export function hide() { - return { +const hide = () => { + return { type: actions.CONSOLE_HIDE }; -} +}; + +export { showCommand, setCompletions, showError, hide }; -- cgit v1.2.3