Move from prettier-eslint to eslint-plugin-prettier, update dependencies

This commit is contained in:
Maksim Eltyshev
2020-02-03 18:42:31 +05:00
parent 1f43d4f214
commit 45bde7e7c0
254 changed files with 5539 additions and 5170 deletions

View File

@@ -2,21 +2,21 @@ import ActionTypes from '../constants/ActionTypes';
/* Events */
export const createActionReceived = (action) => ({
export const createActionReceived = action => ({
type: ActionTypes.ACTION_CREATE_RECEIVED,
payload: {
action,
},
});
export const updateActionReceived = (action) => ({
export const updateActionReceived = action => ({
type: ActionTypes.ACTION_UPDATE_RECEIVED,
payload: {
action,
},
});
export const deleteActionReceived = (action) => ({
export const deleteActionReceived = action => ({
type: ActionTypes.ACTION_DELETE_RECEIVED,
payload: {
action,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Events */
export const fetchActionsRequested = (cardId) => ({
export const fetchActionsRequested = cardId => ({
type: ActionTypes.ACTIONS_FETCH_REQUESTED,
payload: {
cardId,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createBoard = (board) => ({
export const createBoard = board => ({
type: ActionTypes.BOARD_CREATE,
payload: {
board,
@@ -17,7 +17,7 @@ export const updateBoard = (id, data) => ({
},
});
export const deleteBoard = (id) => ({
export const deleteBoard = id => ({
type: ActionTypes.BOARD_DELETE,
payload: {
id,
@@ -61,7 +61,7 @@ export const createBoardReceived = (board, lists, labels) => ({
},
});
export const fetchBoardRequested = (id) => ({
export const fetchBoardRequested = id => ({
type: ActionTypes.BOARD_FETCH_REQUESTED,
payload: {
id,
@@ -105,7 +105,7 @@ export const updateBoardRequested = (id, data) => ({
},
});
export const updateBoardSucceeded = (board) => ({
export const updateBoardSucceeded = board => ({
type: ActionTypes.BOARD_UPDATE_SUCCEEDED,
payload: {
board,
@@ -120,21 +120,21 @@ export const updateBoardFailed = (id, error) => ({
},
});
export const updateBoardReceived = (board) => ({
export const updateBoardReceived = board => ({
type: ActionTypes.BOARD_UPDATE_RECEIVED,
payload: {
board,
},
});
export const deleteBoardRequested = (id) => ({
export const deleteBoardRequested = id => ({
type: ActionTypes.BOARD_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteBoardSucceeded = (board) => ({
export const deleteBoardSucceeded = board => ({
type: ActionTypes.BOARD_DELETE_SUCCEEDED,
payload: {
board,
@@ -149,7 +149,7 @@ export const deleteBoardFailed = (id, error) => ({
},
});
export const deleteBoardReceived = (board) => ({
export const deleteBoardReceived = board => ({
type: ActionTypes.BOARD_DELETE_RECEIVED,
payload: {
board,

View File

@@ -2,28 +2,28 @@ import ActionTypes from '../constants/ActionTypes';
/* Events */
export const createCardLabelRequested = (data) => ({
export const createCardLabelRequested = data => ({
type: ActionTypes.CARD_LABEL_CREATE_REQUESTED,
payload: {
data,
},
});
export const createCardLabelSucceeded = (cardLabel) => ({
export const createCardLabelSucceeded = cardLabel => ({
type: ActionTypes.CARD_LABEL_CREATE_SUCCEEDED,
payload: {
cardLabel,
},
});
export const createCardLabelFailed = (error) => ({
export const createCardLabelFailed = error => ({
type: ActionTypes.CARD_LABEL_CREATE_FAILED,
payload: {
error,
},
});
export const createCardLabelReceived = (cardLabel) => ({
export const createCardLabelReceived = cardLabel => ({
type: ActionTypes.CARD_LABEL_CREATE_RECEIVED,
payload: {
cardLabel,
@@ -38,7 +38,7 @@ export const deleteCardLabelRequested = (cardId, labelId) => ({
},
});
export const deleteCardLabelSucceeded = (cardLabel) => ({
export const deleteCardLabelSucceeded = cardLabel => ({
type: ActionTypes.CARD_LABEL_DELETE_SUCCEEDED,
payload: {
cardLabel,
@@ -54,7 +54,7 @@ export const deleteCardLabelFailed = (cardId, labelId, error) => ({
},
});
export const deleteCardLabelReceived = (cardLabel) => ({
export const deleteCardLabelReceived = cardLabel => ({
type: ActionTypes.CARD_LABEL_DELETE_RECEIVED,
payload: {
cardLabel,

View File

@@ -2,28 +2,28 @@ import ActionTypes from '../constants/ActionTypes';
/* Events */
export const createCardMembershipRequested = (data) => ({
export const createCardMembershipRequested = data => ({
type: ActionTypes.CARD_MEMBERSHIP_CREATE_REQUESTED,
payload: {
data,
},
});
export const createCardMembershipSucceeded = (cardMembership) => ({
export const createCardMembershipSucceeded = cardMembership => ({
type: ActionTypes.CARD_MEMBERSHIP_CREATE_SUCCEEDED,
payload: {
cardMembership,
},
});
export const createCardMembershipFailed = (error) => ({
export const createCardMembershipFailed = error => ({
type: ActionTypes.CARD_MEMBERSHIP_CREATE_FAILED,
payload: {
error,
},
});
export const createCardMembershipReceived = (cardMembership) => ({
export const createCardMembershipReceived = cardMembership => ({
type: ActionTypes.CARD_MEMBERSHIP_CREATE_RECEIVED,
payload: {
cardMembership,
@@ -38,7 +38,7 @@ export const deleteCardMembershipRequested = (cardId, userId) => ({
},
});
export const deleteCardMembershipSucceeded = (cardMembership) => ({
export const deleteCardMembershipSucceeded = cardMembership => ({
type: ActionTypes.CARD_MEMBERSHIP_DELETE_SUCCEEDED,
payload: {
cardMembership,
@@ -54,7 +54,7 @@ export const deleteCardMembershipFailed = (cardId, userId, error) => ({
},
});
export const deleteCardMembershipReceived = (cardMembership) => ({
export const deleteCardMembershipReceived = cardMembership => ({
type: ActionTypes.CARD_MEMBERSHIP_DELETE_RECEIVED,
payload: {
cardMembership,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createCard = (card) => ({
export const createCard = card => ({
type: ActionTypes.CARD_CREATE,
payload: {
card,
@@ -17,7 +17,7 @@ export const updateCard = (id, data) => ({
},
});
export const deleteCard = (id) => ({
export const deleteCard = id => ({
type: ActionTypes.CARD_DELETE,
payload: {
id,
@@ -50,21 +50,21 @@ export const createCardFailed = (localId, error) => ({
},
});
export const createCardReceived = (card) => ({
export const createCardReceived = card => ({
type: ActionTypes.CARD_CREATE_RECEIVED,
payload: {
card,
},
});
export const fetchCardRequested = (id) => ({
export const fetchCardRequested = id => ({
type: ActionTypes.CARD_FETCH_REQUESTED,
payload: {
id,
},
});
export const fetchCardSucceeded = (card) => ({
export const fetchCardSucceeded = card => ({
type: ActionTypes.CARD_FETCH_SUCCEEDED,
payload: {
card,
@@ -87,7 +87,7 @@ export const updateCardRequested = (id, data) => ({
},
});
export const updateCardSucceeded = (card) => ({
export const updateCardSucceeded = card => ({
type: ActionTypes.CARD_UPDATE_SUCCEEDED,
payload: {
card,
@@ -102,21 +102,21 @@ export const updateCardFailed = (id, error) => ({
},
});
export const updateCardReceived = (card) => ({
export const updateCardReceived = card => ({
type: ActionTypes.CARD_UPDATE_RECEIVED,
payload: {
card,
},
});
export const deleteCardRequested = (id) => ({
export const deleteCardRequested = id => ({
type: ActionTypes.CARD_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteCardSucceeded = (card) => ({
export const deleteCardSucceeded = card => ({
type: ActionTypes.CARD_DELETE_SUCCEEDED,
payload: {
card,
@@ -131,7 +131,7 @@ export const deleteCardFailed = (id, error) => ({
},
});
export const deleteCardReceived = (card) => ({
export const deleteCardReceived = card => ({
type: ActionTypes.CARD_DELETE_RECEIVED,
payload: {
card,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createCommentAction = (action) => ({
export const createCommentAction = action => ({
type: ActionTypes.COMMENT_ACTION_CREATE,
payload: {
action,
@@ -17,7 +17,7 @@ export const updateCommentAction = (id, data) => ({
},
});
export const deleteCommentAction = (id) => ({
export const deleteCommentAction = id => ({
type: ActionTypes.COMMENT_ACTION_DELETE,
payload: {
id,
@@ -58,7 +58,7 @@ export const updateCommentActionRequested = (id, data) => ({
},
});
export const updateCommentActionSucceeded = (action) => ({
export const updateCommentActionSucceeded = action => ({
type: ActionTypes.COMMENT_ACTION_UPDATE_SUCCEEDED,
payload: {
action,
@@ -73,14 +73,14 @@ export const updateCommentActionFailed = (id, error) => ({
},
});
export const deleteCommentActionRequested = (id) => ({
export const deleteCommentActionRequested = id => ({
type: ActionTypes.COMMENT_ACTION_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteCommentActionSucceeded = (action) => ({
export const deleteCommentActionSucceeded = action => ({
type: ActionTypes.COMMENT_ACTION_DELETE_SUCCEEDED,
payload: {
action,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createBoardInCurrentProject = (data) => ({
export const createBoardInCurrentProject = data => ({
type: EntryActionTypes.BOARD_IN_CURRENT_PROJECT_CREATE,
payload: {
data,
@@ -23,7 +23,7 @@ export const moveBoard = (id, index) => ({
},
});
export const deleteBoard = (id) => ({
export const deleteBoard = id => ({
type: EntryActionTypes.BOARD_DELETE,
payload: {
id,

View File

@@ -16,7 +16,7 @@ export const updateCard = (id, data) => ({
},
});
export const updateCurrentCard = (data) => ({
export const updateCurrentCard = data => ({
type: EntryActionTypes.CURRENT_CARD_UPDATE,
payload: {
data,
@@ -32,7 +32,7 @@ export const moveCard = (id, listId, index) => ({
},
});
export const deleteCard = (id) => ({
export const deleteCard = id => ({
type: EntryActionTypes.CARD_DELETE,
payload: {
id,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createCommentActionInCurrentCard = (data) => ({
export const createCommentActionInCurrentCard = data => ({
type: EntryActionTypes.COMMENT_ACTION_IN_CURRENT_CARD_CREATE,
payload: {
data,
@@ -15,7 +15,7 @@ export const updateCommentAction = (id, data) => ({
},
});
export const deleteCommentAction = (id) => ({
export const deleteCommentAction = id => ({
type: EntryActionTypes.COMMENT_ACTION_DELETE,
payload: {
id,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createLabelInCurrentBoard = (data) => ({
export const createLabelInCurrentBoard = data => ({
type: EntryActionTypes.LABEL_IN_CURRENT_BOARD_CREATE,
payload: {
data,
@@ -15,7 +15,7 @@ export const updateLabel = (id, data) => ({
},
});
export const deleteLabel = (id) => ({
export const deleteLabel = id => ({
type: EntryActionTypes.LABEL_DELETE,
payload: {
id,
@@ -30,7 +30,7 @@ export const addLabelToCard = (id, cardId) => ({
},
});
export const addLabelToCurrentCard = (id) => ({
export const addLabelToCurrentCard = id => ({
type: EntryActionTypes.LABEL_TO_CURRENT_CARD_ADD,
payload: {
id,
@@ -45,21 +45,21 @@ export const removeLabelFromCard = (id, cardId) => ({
},
});
export const removeLabelFromCurrentCard = (id) => ({
export const removeLabelFromCurrentCard = id => ({
type: EntryActionTypes.LABEL_FROM_CURRENT_CARD_REMOVE,
payload: {
id,
},
});
export const addLabelToFilterInCurrentBoard = (id) => ({
export const addLabelToFilterInCurrentBoard = id => ({
type: EntryActionTypes.LABEL_TO_FILTER_IN_CURRENT_BOARD_ADD,
payload: {
id,
},
});
export const removeLabelFromFilterInCurrentBoard = (id) => ({
export const removeLabelFromFilterInCurrentBoard = id => ({
type: EntryActionTypes.LABEL_FROM_FILTER_IN_CURRENT_BOARD_REMOVE,
payload: {
id,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createListInCurrentBoard = (data) => ({
export const createListInCurrentBoard = data => ({
type: EntryActionTypes.LIST_IN_CURRENT_BOARD_CREATE,
payload: {
data,
@@ -23,7 +23,7 @@ export const moveList = (id, index) => ({
},
});
export const deleteList = (id) => ({
export const deleteList = id => ({
type: EntryActionTypes.LIST_DELETE,
payload: {
id,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const authenticate = (data) => ({
export const authenticate = data => ({
type: EntryActionTypes.AUTHENTICATE,
payload: {
data,

View File

@@ -1,7 +1,7 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
// eslint-disable-next-line import/prefer-default-export
export const deleteNotification = (id) => ({
export const deleteNotification = id => ({
type: EntryActionTypes.NOTIFICATION_DELETE,
payload: {
id,

View File

@@ -1,13 +1,13 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createMembershipInCurrentProject = (data) => ({
export const createMembershipInCurrentProject = data => ({
type: EntryActionTypes.MEMBERSHIP_IN_CURRENT_PROJECT_CREATE,
payload: {
data,
},
});
export const deleteProjectMembership = (id) => ({
export const deleteProjectMembership = id => ({
type: EntryActionTypes.PROJECT_MEMBERSHIP_DELETE,
payload: {
id,

View File

@@ -1,13 +1,13 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createProject = (data) => ({
export const createProject = data => ({
type: EntryActionTypes.PROJECT_CREATE,
payload: {
data,
},
});
export const updateCurrentProject = (data) => ({
export const updateCurrentProject = data => ({
type: EntryActionTypes.CURRENT_PROJECT_UPDATE,
payload: {
data,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createTaskInCurrentCard = (data) => ({
export const createTaskInCurrentCard = data => ({
type: EntryActionTypes.TASK_IN_CURRENT_CARD_CREATE,
payload: {
data,
@@ -15,7 +15,7 @@ export const updateTask = (id, data) => ({
},
});
export const deleteTask = (id) => ({
export const deleteTask = id => ({
type: EntryActionTypes.TASK_DELETE,
payload: {
id,

View File

@@ -1,6 +1,6 @@
import EntryActionTypes from '../../constants/EntryActionTypes';
export const createUser = (data) => ({
export const createUser = data => ({
type: EntryActionTypes.USER_CREATE,
payload: {
data,
@@ -20,14 +20,14 @@ export const updateUser = (id, data) => ({
},
});
export const updateCurrentUser = (data) => ({
export const updateCurrentUser = data => ({
type: EntryActionTypes.CURRENT_USER_UPDATE,
payload: {
data,
},
});
export const updateCurrentUserEmail = (data) => ({
export const updateCurrentUserEmail = data => ({
type: EntryActionTypes.CURRENT_USER_EMAIL_UPDATE,
payload: {
data,
@@ -39,7 +39,7 @@ export const clearCurrentUserEmailUpdateError = () => ({
payload: {},
});
export const updateCurrentUserPassword = (data) => ({
export const updateCurrentUserPassword = data => ({
type: EntryActionTypes.CURRENT_USER_PASSWORD_UPDATE,
payload: {
data,
@@ -51,14 +51,14 @@ export const clearCurrentUserPasswordUpdateError = () => ({
payload: {},
});
export const uploadCurrentUserAvatar = (file) => ({
export const uploadCurrentUserAvatar = file => ({
type: EntryActionTypes.CURRENT_USER_AVATAR_UPLOAD,
payload: {
file,
},
});
export const deleteUser = (id) => ({
export const deleteUser = id => ({
type: EntryActionTypes.USER_DELETE,
payload: {
id,
@@ -73,7 +73,7 @@ export const addUserToCard = (id, cardId) => ({
},
});
export const addUserToCurrentCard = (id) => ({
export const addUserToCurrentCard = id => ({
type: EntryActionTypes.USER_TO_CURRENT_CARD_ADD,
payload: {
id,
@@ -88,21 +88,21 @@ export const removeUserFromCard = (id, cardId) => ({
},
});
export const removeUserFromCurrentCard = (id) => ({
export const removeUserFromCurrentCard = id => ({
type: EntryActionTypes.USER_FROM_CURRENT_CARD_REMOVE,
payload: {
id,
},
});
export const addUserToFilterInCurrentBoard = (id) => ({
export const addUserToFilterInCurrentBoard = id => ({
type: EntryActionTypes.USER_TO_FILTER_IN_CURRENT_BOARD_ADD,
payload: {
id,
},
});
export const removeUserFromFilterInCurrentBoard = (id) => ({
export const removeUserFromFilterInCurrentBoard = id => ({
type: EntryActionTypes.USER_FROM_FILTER_IN_CURRENT_BOARD_REMOVE,
payload: {
id,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createLabel = (label) => ({
export const createLabel = label => ({
type: ActionTypes.LABEL_CREATE,
payload: {
label,
@@ -17,7 +17,7 @@ export const updateLabel = (id, data) => ({
},
});
export const deleteLabel = (id) => ({
export const deleteLabel = id => ({
type: ActionTypes.LABEL_DELETE,
payload: {
id,
@@ -82,7 +82,7 @@ export const createLabelFailed = (localId, error) => ({
},
});
export const createLabelReceived = (label) => ({
export const createLabelReceived = label => ({
type: ActionTypes.LABEL_CREATE_RECEIVED,
payload: {
label,
@@ -97,7 +97,7 @@ export const updateLabelRequested = (id, data) => ({
},
});
export const updateLabelSucceeded = (label) => ({
export const updateLabelSucceeded = label => ({
type: ActionTypes.LABEL_UPDATE_SUCCEEDED,
payload: {
label,
@@ -112,21 +112,21 @@ export const updateLabelFailed = (id, error) => ({
},
});
export const updateLabelReceived = (label) => ({
export const updateLabelReceived = label => ({
type: ActionTypes.LABEL_UPDATE_RECEIVED,
payload: {
label,
},
});
export const deleteLabelRequested = (id) => ({
export const deleteLabelRequested = id => ({
type: ActionTypes.LABEL_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteLabelSucceeded = (label) => ({
export const deleteLabelSucceeded = label => ({
type: ActionTypes.LABEL_DELETE_SUCCEEDED,
payload: {
label,
@@ -141,7 +141,7 @@ export const deleteLabelFailed = (id, error) => ({
},
});
export const deleteLabelReceived = (label) => ({
export const deleteLabelReceived = label => ({
type: ActionTypes.LABEL_DELETE_RECEIVED,
payload: {
label,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createList = (list) => ({
export const createList = list => ({
type: ActionTypes.LIST_CREATE,
payload: {
list,
@@ -17,7 +17,7 @@ export const updateList = (id, data) => ({
},
});
export const deleteList = (id) => ({
export const deleteList = id => ({
type: ActionTypes.LIST_DELETE,
payload: {
id,
@@ -50,7 +50,7 @@ export const createListFailed = (localId, error) => ({
},
});
export const createListReceived = (list) => ({
export const createListReceived = list => ({
type: ActionTypes.LIST_CREATE_RECEIVED,
payload: {
list,
@@ -65,7 +65,7 @@ export const updateListRequested = (id, data) => ({
},
});
export const updateListSucceeded = (list) => ({
export const updateListSucceeded = list => ({
type: ActionTypes.LIST_UPDATE_SUCCEEDED,
payload: {
list,
@@ -80,21 +80,21 @@ export const updateListFailed = (id, error) => ({
},
});
export const updateListReceived = (list) => ({
export const updateListReceived = list => ({
type: ActionTypes.LIST_UPDATE_RECEIVED,
payload: {
list,
},
});
export const deleteListRequested = (id) => ({
export const deleteListRequested = id => ({
type: ActionTypes.LIST_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteListSucceeded = (list) => ({
export const deleteListSucceeded = list => ({
type: ActionTypes.LIST_DELETE_SUCCEEDED,
payload: {
list,
@@ -109,7 +109,7 @@ export const deleteListFailed = (id, error) => ({
},
});
export const deleteListReceived = (list) => ({
export const deleteListReceived = list => ({
type: ActionTypes.LIST_DELETE_RECEIVED,
payload: {
list,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const authenticate = (data) => ({
export const authenticate = data => ({
type: ActionTypes.AUTHENTICATE,
payload: {
data,
@@ -21,21 +21,21 @@ export const logout = () => ({
/* Events */
export const authenticateRequested = (data) => ({
export const authenticateRequested = data => ({
type: ActionTypes.AUTHENTICATE_REQUESTED,
payload: {
data,
},
});
export const authenticateSucceeded = (accessToken) => ({
export const authenticateSucceeded = accessToken => ({
type: ActionTypes.AUTHENTICATE_SUCCEEDED,
payload: {
accessToken,
},
});
export const authenticateFailed = (error) => ({
export const authenticateFailed = error => ({
type: ActionTypes.AUTHENTICATE_FAILED,
payload: {
error,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const openModal = (type) => ({
export const openModal = type => ({
type: ActionTypes.MODAL_OPEN,
payload: {
type,

View File

@@ -12,7 +12,7 @@ export const createNotificationReceived = (notification, user, card, action) =>
},
});
export const deleteNotificationReceived = (notification) => ({
export const deleteNotificationReceived = notification => ({
type: ActionTypes.NOTIFICATION_DELETE_RECEIVED,
payload: {
notification,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const deleteNotifications = (ids) => ({
export const deleteNotifications = ids => ({
type: ActionTypes.NOTIFICATIONS_DELETE,
payload: {
ids,
@@ -26,21 +26,21 @@ export const fetchNotificationsSucceeded = (notifications, users, cards, actions
},
});
export const fetchNotificationsFailed = (error) => ({
export const fetchNotificationsFailed = error => ({
type: ActionTypes.NOTIFICATIONS_FETCH_FAILED,
payload: {
error,
},
});
export const deleteNotificationsRequested = (ids) => ({
export const deleteNotificationsRequested = ids => ({
type: ActionTypes.NOTIFICATIONS_DELETE_REQUESTED,
payload: {
ids,
},
});
export const deleteNotificationsSucceeded = (notifications) => ({
export const deleteNotificationsSucceeded = notifications => ({
type: ActionTypes.NOTIFICATIONS_DELETE_SUCCEEDED,
payload: {
notifications,

View File

@@ -2,14 +2,14 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createProjectMembership = (projectMembership) => ({
export const createProjectMembership = projectMembership => ({
type: ActionTypes.PROJECT_MEMBERSHIP_CREATE,
payload: {
projectMembership,
},
});
export const deleteProjectMembership = (id) => ({
export const deleteProjectMembership = id => ({
type: ActionTypes.PROJECT_MEMBERSHIP_DELETE,
payload: {
id,
@@ -50,14 +50,14 @@ export const createProjectMembershipReceived = (projectMembership, user) => ({
},
});
export const deleteProjectMembershipRequested = (id) => ({
export const deleteProjectMembershipRequested = id => ({
type: ActionTypes.PROJECT_MEMBERSHIP_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteProjectMembershipSucceeded = (projectMembership) => ({
export const deleteProjectMembershipSucceeded = projectMembership => ({
type: ActionTypes.PROJECT_MEMBERSHIP_DELETE_SUCCEEDED,
payload: {
projectMembership,
@@ -72,7 +72,7 @@ export const deleteProjectMembershipFailed = (id, error) => ({
},
});
export const deleteProjectMembershipReceived = (projectMembership) => ({
export const deleteProjectMembershipReceived = projectMembership => ({
type: ActionTypes.PROJECT_MEMBERSHIP_DELETE_RECEIVED,
payload: {
projectMembership,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createProject = (data) => ({
export const createProject = data => ({
type: ActionTypes.PROJECT_CREATE,
payload: {
data,
@@ -17,7 +17,7 @@ export const updateProject = (id, data) => ({
},
});
export const deleteProject = (id) => ({
export const deleteProject = id => ({
type: ActionTypes.PROJECT_DELETE,
payload: {
id,
@@ -26,7 +26,7 @@ export const deleteProject = (id) => ({
/* Events */
export const createProjectRequested = (data) => ({
export const createProjectRequested = data => ({
type: ActionTypes.PROJECT_CREATE_REQUESTED,
payload: {
data,
@@ -43,7 +43,7 @@ export const createProjectSucceeded = (project, users, projectMemberships, board
},
});
export const createProjectFailed = (error) => ({
export const createProjectFailed = error => ({
type: ActionTypes.PROJECT_CREATE_FAILED,
payload: {
error,
@@ -68,7 +68,7 @@ export const updateProjectRequested = (id, data) => ({
},
});
export const updateProjectSucceeded = (project) => ({
export const updateProjectSucceeded = project => ({
type: ActionTypes.PROJECT_UPDATE_SUCCEEDED,
payload: {
project,
@@ -83,21 +83,21 @@ export const updateProjectFailed = (id, error) => ({
},
});
export const updateProjectReceived = (project) => ({
export const updateProjectReceived = project => ({
type: ActionTypes.PROJECT_UPDATE_RECEIVED,
payload: {
project,
},
});
export const deleteProjectRequested = (id) => ({
export const deleteProjectRequested = id => ({
type: ActionTypes.PROJECT_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteProjectSucceeded = (project) => ({
export const deleteProjectSucceeded = project => ({
type: ActionTypes.PROJECT_DELETE_SUCCEEDED,
payload: {
project,
@@ -112,7 +112,7 @@ export const deleteProjectFailed = (id, error) => ({
},
});
export const deleteProjectReceived = (project) => ({
export const deleteProjectReceived = project => ({
type: ActionTypes.PROJECT_DELETE_RECEIVED,
payload: {
project,

View File

@@ -17,7 +17,7 @@ export const fetchProjectsSucceeded = (projects, users, projectMemberships, boar
},
});
export const fetchProjectsFailed = (error) => ({
export const fetchProjectsFailed = error => ({
type: ActionTypes.PROJECTS_FETCH_FAILED,
payload: {
error,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createTask = (task) => ({
export const createTask = task => ({
type: ActionTypes.TASK_CREATE,
payload: {
task,
@@ -17,7 +17,7 @@ export const updateTask = (id, data) => ({
},
});
export const deleteTask = (id) => ({
export const deleteTask = id => ({
type: ActionTypes.TASK_DELETE,
payload: {
id,
@@ -50,7 +50,7 @@ export const createTaskFailed = (localId, error) => ({
},
});
export const createTaskReceived = (task) => ({
export const createTaskReceived = task => ({
type: ActionTypes.TASK_CREATE_RECEIVED,
payload: {
task,
@@ -65,7 +65,7 @@ export const updateTaskRequested = (id, data) => ({
},
});
export const updateTaskSucceeded = (task) => ({
export const updateTaskSucceeded = task => ({
type: ActionTypes.TASK_UPDATE_SUCCEEDED,
payload: {
task,
@@ -80,21 +80,21 @@ export const updateTaskFailed = (id, error) => ({
},
});
export const updateTaskReceived = (task) => ({
export const updateTaskReceived = task => ({
type: ActionTypes.TASK_UPDATE_RECEIVED,
payload: {
task,
},
});
export const deleteTaskRequested = (id) => ({
export const deleteTaskRequested = id => ({
type: ActionTypes.TASK_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteTaskSucceeded = (task) => ({
export const deleteTaskSucceeded = task => ({
type: ActionTypes.TASK_DELETE_SUCCEEDED,
payload: {
task,
@@ -109,7 +109,7 @@ export const deleteTaskFailed = (id, error) => ({
},
});
export const deleteTaskReceived = (task) => ({
export const deleteTaskReceived = task => ({
type: ActionTypes.TASK_DELETE_RECEIVED,
payload: {
task,

View File

@@ -2,7 +2,7 @@ import ActionTypes from '../constants/ActionTypes';
/* Actions */
export const createUser = (data) => ({
export const createUser = data => ({
type: ActionTypes.USER_CREATE,
payload: {
data,
@@ -22,21 +22,21 @@ export const updateUser = (id, data) => ({
},
});
export const clearUserEmailUpdateError = (id) => ({
export const clearUserEmailUpdateError = id => ({
type: ActionTypes.USER_EMAIL_UPDATE_ERROR_CLEAR,
payload: {
id,
},
});
export const clearUserPasswordUpdateError = (id) => ({
export const clearUserPasswordUpdateError = id => ({
type: ActionTypes.USER_PASSWORD_UPDATE_ERROR_CLEAR,
payload: {
id,
},
});
export const deleteUser = (id) => ({
export const deleteUser = id => ({
type: ActionTypes.USER_DELETE,
payload: {
id,
@@ -78,28 +78,28 @@ export const removeUserFromBoardFilter = (id, boardId) => ({
/* Events */
export const createUserRequested = (data) => ({
export const createUserRequested = data => ({
type: ActionTypes.USER_CREATE_REQUESTED,
payload: {
data,
},
});
export const createUserSucceeded = (user) => ({
export const createUserSucceeded = user => ({
type: ActionTypes.USER_CREATE_SUCCEEDED,
payload: {
user,
},
});
export const createUserFailed = (error) => ({
export const createUserFailed = error => ({
type: ActionTypes.USER_CREATE_FAILED,
payload: {
error,
},
});
export const createUserReceived = (user) => ({
export const createUserReceived = user => ({
type: ActionTypes.USER_CREATE_RECEIVED,
payload: {
user,
@@ -111,14 +111,14 @@ export const fetchCurrentUserRequested = () => ({
payload: {},
});
export const fetchCurrentUserSucceeded = (user) => ({
export const fetchCurrentUserSucceeded = user => ({
type: ActionTypes.CURRENT_USER_FETCH_SUCCEEDED,
payload: {
user,
},
});
export const fetchCurrentUserFailed = (error) => ({
export const fetchCurrentUserFailed = error => ({
type: ActionTypes.CURRENT_USER_FETCH_FAILED,
payload: {
error,
@@ -133,7 +133,7 @@ export const updateUserRequested = (id, data) => ({
},
});
export const updateUserSucceeded = (user) => ({
export const updateUserSucceeded = user => ({
type: ActionTypes.USER_UPDATE_SUCCEEDED,
payload: {
user,
@@ -148,7 +148,7 @@ export const updateUserFailed = (id, error) => ({
},
});
export const updateUserReceived = (user) => ({
export const updateUserReceived = user => ({
type: ActionTypes.USER_UPDATE_RECEIVED,
payload: {
user,
@@ -187,7 +187,7 @@ export const updateUserPasswordRequested = (id, data) => ({
},
});
export const updateUserPasswordSucceeded = (id) => ({
export const updateUserPasswordSucceeded = id => ({
type: ActionTypes.USER_PASSWORD_UPDATE_SUCCEEDED,
payload: {
id,
@@ -202,7 +202,7 @@ export const updateUserPasswordFailed = (id, error) => ({
},
});
export const uploadUserAvatarRequested = (id) => ({
export const uploadUserAvatarRequested = id => ({
type: ActionTypes.USER_AVATAR_UPLOAD_REQUESTED,
payload: {
id,
@@ -225,14 +225,14 @@ export const uploadUserAvatarFailed = (id, error) => ({
},
});
export const deleteUserRequested = (id) => ({
export const deleteUserRequested = id => ({
type: ActionTypes.USER_DELETE_REQUESTED,
payload: {
id,
},
});
export const deleteUserSucceeded = (user) => ({
export const deleteUserSucceeded = user => ({
type: ActionTypes.USER_DELETE_SUCCEEDED,
payload: {
user,
@@ -247,7 +247,7 @@ export const deleteUserFailed = (id, error) => ({
},
});
export const deleteUserReceived = (user) => ({
export const deleteUserReceived = user => ({
type: ActionTypes.USER_DELETE_RECEIVED,
payload: {
user,

View File

@@ -7,14 +7,14 @@ export const fetchUsersRequested = () => ({
payload: {},
});
export const fetchUsersSucceeded = (users) => ({
export const fetchUsersSucceeded = users => ({
type: ActionTypes.USERS_FETCH_SUCCEEDED,
payload: {
users,
},
});
export const fetchUsersFailed = (error) => ({
export const fetchUsersFailed = error => ({
type: ActionTypes.USERS_FETCH_FAILED,
payload: {
error,