import { SET_QUESTION,
         SET_ANSWER,
         SET_QUESTIONS,
         SET_ANSWERS,
         SET_QUESTION_DIALOG,
         SET_ERROR_TEXT,
         SET_CURRENT_QUESTION,
         SET_CURRENT_VIEW,
         SET_CURRENT_USER } from './actions';

export function setQuestion(question) {
  return { type: SET_QUESTION, payload: question };
}

export function setAnswer(answer) {
  return { type: SET_ANSWER, payload: answer };
}

export function setQuestions(questions) {
  return { type: SET_QUESTIONS, payload: questions };
}

export function setAnswers(answers) {
  return { type: SET_ANSWERS, payload: answers };
}

export function setQuestionDialog(questionDialog) {
  return { type: SET_QUESTION_DIALOG, payload: questionDialog };
}

export function setErrorText(errorText) {
  return { type: SET_ERROR_TEXT, payload: errorText };
}

export function setCurrentQuestion(currentQuestion) {
  return { type: SET_CURRENT_QUESTION, payload: currentQuestion };
}

export function setCurrentView(currentView) {
  return { type: SET_CURRENT_VIEW, payload: currentView };
}

export function setCurrentUser(currentUser) {
  return { type: SET_CURRENT_USER, payload: currentUser };
}

@@ -246,32 +246,29 @@
 s';%0A%0Aexport 
-function
+const
  setQuestion
@@ -267,16 +267,19 @@
 Question
+ = 
 (questio
@@ -272,32 +272,35 @@
 ion = (question)
+ =%3E
  %7B%0A  return %7B ty
@@ -331,32 +331,33 @@
 d: question %7D;%0A%7D
+;
 %0A%0Aexport functio
@@ -345,32 +345,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setAnswer(a
@@ -368,16 +368,19 @@
 swer
+ = 
 (answer)
  %7B%0A 
@@ -375,16 +375,19 @@
 (answer)
+ =%3E
  %7B%0A  ret
@@ -426,24 +426,25 @@
  answer %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -436,32 +436,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setQuestion
@@ -458,16 +458,19 @@
 uestions
+ = 
 (questio
@@ -472,16 +472,19 @@
 estions)
+ =%3E
  %7B%0A  ret
@@ -529,24 +529,25 @@
 estions %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -539,32 +539,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setAnswers(
@@ -559,16 +559,19 @@
 tAnswers
+ = 
 (answers
@@ -571,16 +571,19 @@
 answers)
+ =%3E
  %7B%0A  ret
@@ -624,24 +624,25 @@
 answers %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -634,32 +634,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setQuestion
@@ -661,16 +661,19 @@
 onDialog
+ = 
 (questio
@@ -680,16 +680,19 @@
 nDialog)
+ =%3E
  %7B%0A  ret
@@ -748,24 +748,25 @@
 nDialog %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -758,32 +758,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setErrorTex
@@ -780,16 +780,19 @@
 rrorText
+ = 
 (errorTe
@@ -794,16 +794,19 @@
 rorText)
+ =%3E
  %7B%0A  ret
@@ -852,24 +852,25 @@
 rorText %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -862,32 +862,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setCurrentQ
@@ -890,16 +890,19 @@
 Question
+ = 
 (current
@@ -910,16 +910,19 @@
 uestion)
+ =%3E
  %7B%0A  ret
@@ -980,24 +980,25 @@
 uestion %7D;%0A%7D
+;
 %0A%0Aexport fun
@@ -990,32 +990,29 @@
 %0A%7D;%0A%0Aexport 
-function
+const
  setCurrentV
@@ -1014,16 +1014,19 @@
 rentView
+ = 
 (current
@@ -1030,16 +1030,19 @@
 entView)
+ =%3E
  %7B%0A  ret
@@ -1096,16 +1096,17 @@
 iew %7D;%0A%7D
+;
 %0A%0Aexport
@@ -1110,16 +1110,13 @@
 ort 
-function
+const
  set
@@ -1126,16 +1126,19 @@
 rentUser
+ = 
 (current
@@ -1142,16 +1142,19 @@
 entUser)
+ =%3E
  %7B%0A  ret
@@ -1208,9 +1208,10 @@
 ser %7D;%0A%7D
+;
 %0A

Modify actionCreators file to satify linting requirements for function definition