diff --git a/.eslintignore b/.eslintignore index 87d05e608..46b769557 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,5 +1,6 @@ /node_modules/** /static/** +/static-test/** /tmp/** /coverage/** !.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js index e4c8cd801..79076f8c7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -78,6 +78,7 @@ module.exports = { ], }, ], + 'no-extra-semi': 'error', 'no-fallthrough': 'error', 'no-irregular-whitespace': 'error', 'no-mixed-spaces-and-tabs': 'error', diff --git a/app/soapbox/actions/accounts.js b/app/soapbox/actions/accounts.js index 307d98a39..e215e5256 100644 --- a/app/soapbox/actions/accounts.js +++ b/app/soapbox/actions/accounts.js @@ -125,7 +125,7 @@ export function fetchAccount(id) { dispatch(fetchAccountFail(id, error)); }); }; -}; +} export function fetchAccountByUsername(username) { return (dispatch, getState) => { @@ -145,21 +145,21 @@ export function fetchAccountByUsername(username) { dispatch(importErrorWhileFetchingAccountByUsername(username)); }); }; -}; +} export function fetchAccountRequest(id) { return { type: ACCOUNT_FETCH_REQUEST, id, }; -}; +} export function fetchAccountSuccess(account) { return { type: ACCOUNT_FETCH_SUCCESS, account, }; -}; +} export function fetchAccountFail(id, error) { return { @@ -168,7 +168,7 @@ export function fetchAccountFail(id, error) { error, skipAlert: true, }; -}; +} export function followAccount(id, reblogs = true) { return (dispatch, getState) => { @@ -185,7 +185,7 @@ export function followAccount(id, reblogs = true) { dispatch(followAccountFail(error, locked)); }); }; -}; +} export function unfollowAccount(id) { return (dispatch, getState) => { @@ -199,7 +199,7 @@ export function unfollowAccount(id) { dispatch(unfollowAccountFail(error)); }); }; -}; +} export function followAccountRequest(id, locked) { return { @@ -208,7 +208,7 @@ export function followAccountRequest(id, locked) { locked, skipLoading: true, }; -}; +} export function followAccountSuccess(relationship, alreadyFollowing) { return { @@ -217,7 +217,7 @@ export function followAccountSuccess(relationship, alreadyFollowing) { alreadyFollowing, skipLoading: true, }; -}; +} export function followAccountFail(error, locked) { return { @@ -226,7 +226,7 @@ export function followAccountFail(error, locked) { locked, skipLoading: true, }; -}; +} export function unfollowAccountRequest(id) { return { @@ -234,7 +234,7 @@ export function unfollowAccountRequest(id) { id, skipLoading: true, }; -}; +} export function unfollowAccountSuccess(relationship, statuses) { return { @@ -243,7 +243,7 @@ export function unfollowAccountSuccess(relationship, statuses) { statuses, skipLoading: true, }; -}; +} export function unfollowAccountFail(error) { return { @@ -251,7 +251,7 @@ export function unfollowAccountFail(error) { error, skipLoading: true, }; -}; +} export function blockAccount(id) { return (dispatch, getState) => { @@ -266,7 +266,7 @@ export function blockAccount(id) { dispatch(blockAccountFail(id, error)); }); }; -}; +} export function unblockAccount(id) { return (dispatch, getState) => { @@ -280,14 +280,14 @@ export function unblockAccount(id) { dispatch(unblockAccountFail(id, error)); }); }; -}; +} export function blockAccountRequest(id) { return { type: ACCOUNT_BLOCK_REQUEST, id, }; -}; +} export function blockAccountSuccess(relationship, statuses) { return { @@ -295,35 +295,35 @@ export function blockAccountSuccess(relationship, statuses) { relationship, statuses, }; -}; +} export function blockAccountFail(error) { return { type: ACCOUNT_BLOCK_FAIL, error, }; -}; +} export function unblockAccountRequest(id) { return { type: ACCOUNT_UNBLOCK_REQUEST, id, }; -}; +} export function unblockAccountSuccess(relationship) { return { type: ACCOUNT_UNBLOCK_SUCCESS, relationship, }; -}; +} export function unblockAccountFail(error) { return { type: ACCOUNT_UNBLOCK_FAIL, error, }; -}; +} export function muteAccount(id, notifications) { @@ -339,7 +339,7 @@ export function muteAccount(id, notifications) { dispatch(muteAccountFail(id, error)); }); }; -}; +} export function unmuteAccount(id) { return (dispatch, getState) => { @@ -353,14 +353,14 @@ export function unmuteAccount(id) { dispatch(unmuteAccountFail(id, error)); }); }; -}; +} export function muteAccountRequest(id) { return { type: ACCOUNT_MUTE_REQUEST, id, }; -}; +} export function muteAccountSuccess(relationship, statuses) { return { @@ -368,35 +368,35 @@ export function muteAccountSuccess(relationship, statuses) { relationship, statuses, }; -}; +} export function muteAccountFail(error) { return { type: ACCOUNT_MUTE_FAIL, error, }; -}; +} export function unmuteAccountRequest(id) { return { type: ACCOUNT_UNMUTE_REQUEST, id, }; -}; +} export function unmuteAccountSuccess(relationship) { return { type: ACCOUNT_UNMUTE_SUCCESS, relationship, }; -}; +} export function unmuteAccountFail(error) { return { type: ACCOUNT_UNMUTE_FAIL, error, }; -}; +} export function subscribeAccount(id, notifications) { @@ -411,7 +411,7 @@ export function subscribeAccount(id, notifications) { dispatch(subscribeAccountFail(id, error)); }); }; -}; +} export function unsubscribeAccount(id) { return (dispatch, getState) => { @@ -425,49 +425,49 @@ export function unsubscribeAccount(id) { dispatch(unsubscribeAccountFail(id, error)); }); }; -}; +} export function subscribeAccountRequest(id) { return { type: ACCOUNT_SUBSCRIBE_REQUEST, id, }; -}; +} export function subscribeAccountSuccess(relationship) { return { type: ACCOUNT_SUBSCRIBE_SUCCESS, relationship, }; -}; +} export function subscribeAccountFail(error) { return { type: ACCOUNT_SUBSCRIBE_FAIL, error, }; -}; +} export function unsubscribeAccountRequest(id) { return { type: ACCOUNT_UNSUBSCRIBE_REQUEST, id, }; -}; +} export function unsubscribeAccountSuccess(relationship) { return { type: ACCOUNT_UNSUBSCRIBE_SUCCESS, relationship, }; -}; +} export function unsubscribeAccountFail(error) { return { type: ACCOUNT_UNSUBSCRIBE_FAIL, error, }; -}; +} export function fetchFollowers(id) { return (dispatch, getState) => { @@ -485,14 +485,14 @@ export function fetchFollowers(id) { dispatch(fetchFollowersFail(id, error)); }); }; -}; +} export function fetchFollowersRequest(id) { return { type: FOLLOWERS_FETCH_REQUEST, id, }; -}; +} export function fetchFollowersSuccess(id, accounts, next) { return { @@ -501,7 +501,7 @@ export function fetchFollowersSuccess(id, accounts, next) { accounts, next, }; -}; +} export function fetchFollowersFail(id, error) { return { @@ -509,7 +509,7 @@ export function fetchFollowersFail(id, error) { id, error, }; -}; +} export function expandFollowers(id) { return (dispatch, getState) => { @@ -533,14 +533,14 @@ export function expandFollowers(id) { dispatch(expandFollowersFail(id, error)); }); }; -}; +} export function expandFollowersRequest(id) { return { type: FOLLOWERS_EXPAND_REQUEST, id, }; -}; +} export function expandFollowersSuccess(id, accounts, next) { return { @@ -549,7 +549,7 @@ export function expandFollowersSuccess(id, accounts, next) { accounts, next, }; -}; +} export function expandFollowersFail(id, error) { return { @@ -557,7 +557,7 @@ export function expandFollowersFail(id, error) { id, error, }; -}; +} export function fetchFollowing(id) { return (dispatch, getState) => { @@ -575,14 +575,14 @@ export function fetchFollowing(id) { dispatch(fetchFollowingFail(id, error)); }); }; -}; +} export function fetchFollowingRequest(id) { return { type: FOLLOWING_FETCH_REQUEST, id, }; -}; +} export function fetchFollowingSuccess(id, accounts, next) { return { @@ -591,7 +591,7 @@ export function fetchFollowingSuccess(id, accounts, next) { accounts, next, }; -}; +} export function fetchFollowingFail(id, error) { return { @@ -599,7 +599,7 @@ export function fetchFollowingFail(id, error) { id, error, }; -}; +} export function expandFollowing(id) { return (dispatch, getState) => { @@ -623,14 +623,14 @@ export function expandFollowing(id) { dispatch(expandFollowingFail(id, error)); }); }; -}; +} export function expandFollowingRequest(id) { return { type: FOLLOWING_EXPAND_REQUEST, id, }; -}; +} export function expandFollowingSuccess(id, accounts, next) { return { @@ -639,7 +639,7 @@ export function expandFollowingSuccess(id, accounts, next) { accounts, next, }; -}; +} export function expandFollowingFail(id, error) { return { @@ -647,7 +647,7 @@ export function expandFollowingFail(id, error) { id, error, }; -}; +} export function fetchRelationships(accountIds) { return (dispatch, getState) => { @@ -668,7 +668,7 @@ export function fetchRelationships(accountIds) { dispatch(fetchRelationshipsFail(error)); }); }; -}; +} export function fetchRelationshipsRequest(ids) { return { @@ -676,7 +676,7 @@ export function fetchRelationshipsRequest(ids) { ids, skipLoading: true, }; -}; +} export function fetchRelationshipsSuccess(relationships) { return { @@ -684,7 +684,7 @@ export function fetchRelationshipsSuccess(relationships) { relationships, skipLoading: true, }; -}; +} export function fetchRelationshipsFail(error) { return { @@ -692,7 +692,7 @@ export function fetchRelationshipsFail(error) { error, skipLoading: true, }; -}; +} export function fetchFollowRequests() { return (dispatch, getState) => { @@ -706,13 +706,13 @@ export function fetchFollowRequests() { dispatch(fetchFollowRequestsSuccess(response.data, next ? next.uri : null)); }).catch(error => dispatch(fetchFollowRequestsFail(error))); }; -}; +} export function fetchFollowRequestsRequest() { return { type: FOLLOW_REQUESTS_FETCH_REQUEST, }; -}; +} export function fetchFollowRequestsSuccess(accounts, next) { return { @@ -720,14 +720,14 @@ export function fetchFollowRequestsSuccess(accounts, next) { accounts, next, }; -}; +} export function fetchFollowRequestsFail(error) { return { type: FOLLOW_REQUESTS_FETCH_FAIL, error, }; -}; +} export function expandFollowRequests() { return (dispatch, getState) => { @@ -747,13 +747,13 @@ export function expandFollowRequests() { dispatch(expandFollowRequestsSuccess(response.data, next ? next.uri : null)); }).catch(error => dispatch(expandFollowRequestsFail(error))); }; -}; +} export function expandFollowRequestsRequest() { return { type: FOLLOW_REQUESTS_EXPAND_REQUEST, }; -}; +} export function expandFollowRequestsSuccess(accounts, next) { return { @@ -761,14 +761,14 @@ export function expandFollowRequestsSuccess(accounts, next) { accounts, next, }; -}; +} export function expandFollowRequestsFail(error) { return { type: FOLLOW_REQUESTS_EXPAND_FAIL, error, }; -}; +} export function authorizeFollowRequest(id) { return (dispatch, getState) => { @@ -781,21 +781,21 @@ export function authorizeFollowRequest(id) { .then(() => dispatch(authorizeFollowRequestSuccess(id))) .catch(error => dispatch(authorizeFollowRequestFail(id, error))); }; -}; +} export function authorizeFollowRequestRequest(id) { return { type: FOLLOW_REQUEST_AUTHORIZE_REQUEST, id, }; -}; +} export function authorizeFollowRequestSuccess(id) { return { type: FOLLOW_REQUEST_AUTHORIZE_SUCCESS, id, }; -}; +} export function authorizeFollowRequestFail(id, error) { return { @@ -803,7 +803,7 @@ export function authorizeFollowRequestFail(id, error) { id, error, }; -}; +} export function rejectFollowRequest(id) { @@ -817,21 +817,21 @@ export function rejectFollowRequest(id) { .then(() => dispatch(rejectFollowRequestSuccess(id))) .catch(error => dispatch(rejectFollowRequestFail(id, error))); }; -}; +} export function rejectFollowRequestRequest(id) { return { type: FOLLOW_REQUEST_REJECT_REQUEST, id, }; -}; +} export function rejectFollowRequestSuccess(id) { return { type: FOLLOW_REQUEST_REJECT_SUCCESS, id, }; -}; +} export function rejectFollowRequestFail(id, error) { return { @@ -839,7 +839,7 @@ export function rejectFollowRequestFail(id, error) { id, error, }; -}; +} export function pinAccount(id) { return (dispatch, getState) => { @@ -853,7 +853,7 @@ export function pinAccount(id) { dispatch(pinAccountFail(error)); }); }; -}; +} export function unpinAccount(id) { return (dispatch, getState) => { @@ -867,7 +867,7 @@ export function unpinAccount(id) { dispatch(unpinAccountFail(error)); }); }; -}; +} export function updateNotificationSettings(params) { return (dispatch, getState) => { @@ -878,46 +878,46 @@ export function updateNotificationSettings(params) { dispatch({ type: NOTIFICATION_SETTINGS_FAIL, params, error }); }); }; -}; +} export function pinAccountRequest(id) { return { type: ACCOUNT_PIN_REQUEST, id, }; -}; +} export function pinAccountSuccess(relationship) { return { type: ACCOUNT_PIN_SUCCESS, relationship, }; -}; +} export function pinAccountFail(error) { return { type: ACCOUNT_PIN_FAIL, error, }; -}; +} export function unpinAccountRequest(id) { return { type: ACCOUNT_UNPIN_REQUEST, id, }; -}; +} export function unpinAccountSuccess(relationship) { return { type: ACCOUNT_UNPIN_SUCCESS, relationship, }; -}; +} export function unpinAccountFail(error) { return { type: ACCOUNT_UNPIN_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/alerts.js b/app/soapbox/actions/alerts.js index 47ada2b98..ae5e179ad 100644 --- a/app/soapbox/actions/alerts.js +++ b/app/soapbox/actions/alerts.js @@ -14,13 +14,13 @@ export function dismissAlert(alert) { type: ALERT_DISMISS, alert, }; -}; +} export function clearAlert() { return { type: ALERT_CLEAR, }; -}; +} export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage, severity = 'info') { return { @@ -29,7 +29,7 @@ export function showAlert(title = messages.unexpectedTitle, message = messages.u message, severity, }; -}; +} export function showAlertForError(error) { if (error.response) { diff --git a/app/soapbox/actions/blocks.js b/app/soapbox/actions/blocks.js index 9896495ff..63d01de3a 100644 --- a/app/soapbox/actions/blocks.js +++ b/app/soapbox/actions/blocks.js @@ -26,13 +26,13 @@ export function fetchBlocks() { dispatch(fetchRelationships(response.data.map(item => item.id))); }).catch(error => dispatch(fetchBlocksFail(error))); }; -}; +} export function fetchBlocksRequest() { return { type: BLOCKS_FETCH_REQUEST, }; -}; +} export function fetchBlocksSuccess(accounts, next) { return { @@ -40,14 +40,14 @@ export function fetchBlocksSuccess(accounts, next) { accounts, next, }; -}; +} export function fetchBlocksFail(error) { return { type: BLOCKS_FETCH_FAIL, error, }; -}; +} export function expandBlocks() { return (dispatch, getState) => { @@ -69,13 +69,13 @@ export function expandBlocks() { dispatch(fetchRelationships(response.data.map(item => item.id))); }).catch(error => dispatch(expandBlocksFail(error))); }; -}; +} export function expandBlocksRequest() { return { type: BLOCKS_EXPAND_REQUEST, }; -}; +} export function expandBlocksSuccess(accounts, next) { return { @@ -83,11 +83,11 @@ export function expandBlocksSuccess(accounts, next) { accounts, next, }; -}; +} export function expandBlocksFail(error) { return { type: BLOCKS_EXPAND_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/bookmarks.js b/app/soapbox/actions/bookmarks.js index 544ed2ff2..3c8eec546 100644 --- a/app/soapbox/actions/bookmarks.js +++ b/app/soapbox/actions/bookmarks.js @@ -25,13 +25,13 @@ export function fetchBookmarkedStatuses() { dispatch(fetchBookmarkedStatusesFail(error)); }); }; -}; +} export function fetchBookmarkedStatusesRequest() { return { type: BOOKMARKED_STATUSES_FETCH_REQUEST, }; -}; +} export function fetchBookmarkedStatusesSuccess(statuses, next) { return { @@ -39,14 +39,14 @@ export function fetchBookmarkedStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function fetchBookmarkedStatusesFail(error) { return { type: BOOKMARKED_STATUSES_FETCH_FAIL, error, }; -}; +} export function expandBookmarkedStatuses() { return (dispatch, getState) => { @@ -66,13 +66,13 @@ export function expandBookmarkedStatuses() { dispatch(expandBookmarkedStatusesFail(error)); }); }; -}; +} export function expandBookmarkedStatusesRequest() { return { type: BOOKMARKED_STATUSES_EXPAND_REQUEST, }; -}; +} export function expandBookmarkedStatusesSuccess(statuses, next) { return { @@ -80,11 +80,11 @@ export function expandBookmarkedStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function expandBookmarkedStatusesFail(error) { return { type: BOOKMARKED_STATUSES_EXPAND_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index 2e16b7f24..21e4de7d6 100644 --- a/app/soapbox/actions/compose.js +++ b/app/soapbox/actions/compose.js @@ -88,7 +88,7 @@ export function changeCompose(text) { type: COMPOSE_CHANGE, text: text, }; -}; +} export function replyCompose(status, routerHistory) { return (dispatch, getState) => { @@ -101,19 +101,19 @@ export function replyCompose(status, routerHistory) { dispatch(openModal('COMPOSE')); }; -}; +} export function cancelReplyCompose() { return { type: COMPOSE_REPLY_CANCEL, }; -}; +} export function resetCompose() { return { type: COMPOSE_RESET, }; -}; +} export function mentionCompose(account, routerHistory) { return (dispatch, getState) => { @@ -124,7 +124,7 @@ export function mentionCompose(account, routerHistory) { dispatch(openModal('COMPOSE')); }; -}; +} export function directCompose(account, routerHistory) { return (dispatch, getState) => { @@ -135,7 +135,7 @@ export function directCompose(account, routerHistory) { dispatch(openModal('COMPOSE')); }; -}; +} export function handleComposeSubmit(dispatch, getState, data, status) { if (!dispatch || !getState) return; @@ -231,27 +231,27 @@ export function submitCompose(routerHistory, force = false) { dispatch(submitComposeFail(error)); }); }; -}; +} export function submitComposeRequest() { return { type: COMPOSE_SUBMIT_REQUEST, }; -}; +} export function submitComposeSuccess(status) { return { type: COMPOSE_SUBMIT_SUCCESS, status: status, }; -}; +} export function submitComposeFail(error) { return { type: COMPOSE_SUBMIT_FAIL, error: error, }; -}; +} export function uploadCompose(files) { return function(dispatch, getState) { @@ -290,9 +290,9 @@ export function uploadCompose(files) { }).catch(error => dispatch(uploadComposeFail(error))); /* eslint-enable no-loop-func */ - }; + } }; -}; +} export function changeUploadCompose(id, params) { return (dispatch, getState) => { @@ -306,21 +306,21 @@ export function changeUploadCompose(id, params) { dispatch(changeUploadComposeFail(id, error)); }); }; -}; +} export function changeUploadComposeRequest() { return { type: COMPOSE_UPLOAD_CHANGE_REQUEST, skipLoading: true, }; -}; +} export function changeUploadComposeSuccess(media) { return { type: COMPOSE_UPLOAD_CHANGE_SUCCESS, media: media, skipLoading: true, }; -}; +} export function changeUploadComposeFail(error) { return { @@ -328,14 +328,14 @@ export function changeUploadComposeFail(error) { error: error, skipLoading: true, }; -}; +} export function uploadComposeRequest() { return { type: COMPOSE_UPLOAD_REQUEST, skipLoading: true, }; -}; +} export function uploadComposeProgress(loaded, total) { return { @@ -343,7 +343,7 @@ export function uploadComposeProgress(loaded, total) { loaded: loaded, total: total, }; -}; +} export function uploadComposeSuccess(media) { return { @@ -351,7 +351,7 @@ export function uploadComposeSuccess(media) { media: media, skipLoading: true, }; -}; +} export function uploadComposeFail(error) { return { @@ -359,14 +359,14 @@ export function uploadComposeFail(error) { error: error, skipLoading: true, }; -}; +} export function undoUploadCompose(media_id) { return { type: COMPOSE_UPLOAD_UNDO, media_id: media_id, }; -}; +} export function clearComposeSuggestions() { if (cancelFetchComposeSuggestionsAccounts) { @@ -375,7 +375,7 @@ export function clearComposeSuggestions() { return { type: COMPOSE_SUGGESTIONS_CLEAR, }; -}; +} const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, token) => { if (cancelFetchComposeSuggestionsAccounts) { @@ -423,7 +423,7 @@ export function fetchComposeSuggestions(token) { break; } }; -}; +} export function readyComposeSuggestionsEmojis(token, emojis) { return { @@ -431,7 +431,7 @@ export function readyComposeSuggestionsEmojis(token, emojis) { token, emojis, }; -}; +} export function readyComposeSuggestionsAccounts(token, accounts) { return { @@ -439,7 +439,7 @@ export function readyComposeSuggestionsAccounts(token, accounts) { token, accounts, }; -}; +} export function selectComposeSuggestion(position, token, suggestion, path) { return (dispatch, getState) => { @@ -466,7 +466,7 @@ export function selectComposeSuggestion(position, token, suggestion, path) { path, }); }; -}; +} export function updateSuggestionTags(token) { return { @@ -505,46 +505,46 @@ export function mountCompose() { return { type: COMPOSE_MOUNT, }; -}; +} export function unmountCompose() { return { type: COMPOSE_UNMOUNT, }; -}; +} export function changeComposeSensitivity() { return { type: COMPOSE_SENSITIVITY_CHANGE, }; -}; +} export function changeComposeSpoilerness() { return { type: COMPOSE_SPOILERNESS_CHANGE, }; -}; +} export function changeComposeContentType(value) { return { type: COMPOSE_TYPE_CHANGE, value, }; -}; +} export function changeComposeSpoilerText(text) { return { type: COMPOSE_SPOILER_TEXT_CHANGE, text, }; -}; +} export function changeComposeVisibility(value) { return { type: COMPOSE_VISIBILITY_CHANGE, value, }; -}; +} export function insertEmojiCompose(position, emoji, needsSpace) { return { @@ -553,52 +553,52 @@ export function insertEmojiCompose(position, emoji, needsSpace) { emoji, needsSpace, }; -}; +} export function changeComposing(value) { return { type: COMPOSE_COMPOSING_CHANGE, value, }; -}; +} export function addPoll() { return { type: COMPOSE_POLL_ADD, }; -}; +} export function removePoll() { return { type: COMPOSE_POLL_REMOVE, }; -}; +} export function addSchedule() { return { type: COMPOSE_SCHEDULE_ADD, }; -}; +} export function setSchedule(date) { return { type: COMPOSE_SCHEDULE_SET, date: date, }; -}; +} export function removeSchedule() { return { type: COMPOSE_SCHEDULE_REMOVE, }; -}; +} export function addPollOption(title) { return { type: COMPOSE_POLL_OPTION_ADD, title, }; -}; +} export function changePollOption(index, title) { return { @@ -606,14 +606,14 @@ export function changePollOption(index, title) { index, title, }; -}; +} export function removePollOption(index) { return { type: COMPOSE_POLL_OPTION_REMOVE, index, }; -}; +} export function changePollSettings(expiresIn, isMultiple) { return { @@ -621,4 +621,4 @@ export function changePollSettings(expiresIn, isMultiple) { expiresIn, isMultiple, }; -}; +} diff --git a/app/soapbox/actions/custom_emojis.js b/app/soapbox/actions/custom_emojis.js index 7b7d0091b..9ec8156b1 100644 --- a/app/soapbox/actions/custom_emojis.js +++ b/app/soapbox/actions/custom_emojis.js @@ -14,14 +14,14 @@ export function fetchCustomEmojis() { dispatch(fetchCustomEmojisFail(error)); }); }; -}; +} export function fetchCustomEmojisRequest() { return { type: CUSTOM_EMOJIS_FETCH_REQUEST, skipLoading: true, }; -}; +} export function fetchCustomEmojisSuccess(custom_emojis) { return { @@ -29,7 +29,7 @@ export function fetchCustomEmojisSuccess(custom_emojis) { custom_emojis, skipLoading: true, }; -}; +} export function fetchCustomEmojisFail(error) { return { @@ -37,4 +37,4 @@ export function fetchCustomEmojisFail(error) { error, skipLoading: true, }; -}; +} diff --git a/app/soapbox/actions/domain_blocks.js b/app/soapbox/actions/domain_blocks.js index 533885a56..8872590a3 100644 --- a/app/soapbox/actions/domain_blocks.js +++ b/app/soapbox/actions/domain_blocks.js @@ -31,14 +31,14 @@ export function blockDomain(domain) { dispatch(blockDomainFail(domain, err)); }); }; -}; +} export function blockDomainRequest(domain) { return { type: DOMAIN_BLOCK_REQUEST, domain, }; -}; +} export function blockDomainSuccess(domain, accounts) { return { @@ -46,7 +46,7 @@ export function blockDomainSuccess(domain, accounts) { domain, accounts, }; -}; +} export function blockDomainFail(domain, error) { return { @@ -54,7 +54,7 @@ export function blockDomainFail(domain, error) { domain, error, }; -}; +} export function unblockDomain(domain) { return (dispatch, getState) => { @@ -76,14 +76,14 @@ export function unblockDomain(domain) { dispatch(unblockDomainFail(domain, err)); }); }; -}; +} export function unblockDomainRequest(domain) { return { type: DOMAIN_UNBLOCK_REQUEST, domain, }; -}; +} export function unblockDomainSuccess(domain, accounts) { return { @@ -91,7 +91,7 @@ export function unblockDomainSuccess(domain, accounts) { domain, accounts, }; -}; +} export function unblockDomainFail(domain, error) { return { @@ -99,7 +99,7 @@ export function unblockDomainFail(domain, error) { domain, error, }; -}; +} export function fetchDomainBlocks() { return (dispatch, getState) => { @@ -114,13 +114,13 @@ export function fetchDomainBlocks() { dispatch(fetchDomainBlocksFail(err)); }); }; -}; +} export function fetchDomainBlocksRequest() { return { type: DOMAIN_BLOCKS_FETCH_REQUEST, }; -}; +} export function fetchDomainBlocksSuccess(domains, next) { return { @@ -128,14 +128,14 @@ export function fetchDomainBlocksSuccess(domains, next) { domains, next, }; -}; +} export function fetchDomainBlocksFail(error) { return { type: DOMAIN_BLOCKS_FETCH_FAIL, error, }; -}; +} export function expandDomainBlocks() { return (dispatch, getState) => { @@ -156,13 +156,13 @@ export function expandDomainBlocks() { dispatch(expandDomainBlocksFail(err)); }); }; -}; +} export function expandDomainBlocksRequest() { return { type: DOMAIN_BLOCKS_EXPAND_REQUEST, }; -}; +} export function expandDomainBlocksSuccess(domains, next) { return { @@ -170,11 +170,11 @@ export function expandDomainBlocksSuccess(domains, next) { domains, next, }; -}; +} export function expandDomainBlocksFail(error) { return { type: DOMAIN_BLOCKS_EXPAND_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/emoji_reacts.js b/app/soapbox/actions/emoji_reacts.js index 60bb46c2f..c3e6b63f4 100644 --- a/app/soapbox/actions/emoji_reacts.js +++ b/app/soapbox/actions/emoji_reacts.js @@ -62,7 +62,7 @@ export function fetchEmojiReacts(id, emoji) { dispatch(fetchEmojiReactsFail(id, error)); }); }; -}; +} export function emojiReact(status, emoji) { return function(dispatch, getState) { @@ -79,7 +79,7 @@ export function emojiReact(status, emoji) { dispatch(emojiReactFail(status, emoji, error)); }); }; -}; +} export function unEmojiReact(status, emoji) { return (dispatch, getState) => { @@ -96,7 +96,7 @@ export function unEmojiReact(status, emoji) { dispatch(unEmojiReactFail(status, emoji, error)); }); }; -}; +} export function fetchEmojiReactsRequest(id, emoji) { return { @@ -104,7 +104,7 @@ export function fetchEmojiReactsRequest(id, emoji) { id, emoji, }; -}; +} export function fetchEmojiReactsSuccess(id, emojiReacts) { return { @@ -112,14 +112,14 @@ export function fetchEmojiReactsSuccess(id, emojiReacts) { id, emojiReacts, }; -}; +} export function fetchEmojiReactsFail(id, error) { return { type: EMOJI_REACTS_FETCH_FAIL, error, }; -}; +} export function emojiReactRequest(status, emoji) { return { @@ -128,7 +128,7 @@ export function emojiReactRequest(status, emoji) { emoji, skipLoading: true, }; -}; +} export function emojiReactSuccess(status, emoji) { return { @@ -137,7 +137,7 @@ export function emojiReactSuccess(status, emoji) { emoji, skipLoading: true, }; -}; +} export function emojiReactFail(status, emoji, error) { return { @@ -147,7 +147,7 @@ export function emojiReactFail(status, emoji, error) { error, skipLoading: true, }; -}; +} export function unEmojiReactRequest(status, emoji) { return { @@ -156,7 +156,7 @@ export function unEmojiReactRequest(status, emoji) { emoji, skipLoading: true, }; -}; +} export function unEmojiReactSuccess(status, emoji) { return { @@ -165,7 +165,7 @@ export function unEmojiReactSuccess(status, emoji) { emoji, skipLoading: true, }; -}; +} export function unEmojiReactFail(status, emoji, error) { return { @@ -175,4 +175,4 @@ export function unEmojiReactFail(status, emoji, error) { error, skipLoading: true, }; -}; +} diff --git a/app/soapbox/actions/emojis.js b/app/soapbox/actions/emojis.js index 7cd9d4b7b..3b5d53996 100644 --- a/app/soapbox/actions/emojis.js +++ b/app/soapbox/actions/emojis.js @@ -11,4 +11,4 @@ export function useEmoji(emoji) { dispatch(saveSettings()); }; -}; +} diff --git a/app/soapbox/actions/favourites.js b/app/soapbox/actions/favourites.js index 02ecc81c3..44c40cd81 100644 --- a/app/soapbox/actions/favourites.js +++ b/app/soapbox/actions/favourites.js @@ -28,14 +28,14 @@ export function fetchFavouritedStatuses() { dispatch(fetchFavouritedStatusesFail(error)); }); }; -}; +} export function fetchFavouritedStatusesRequest() { return { type: FAVOURITED_STATUSES_FETCH_REQUEST, skipLoading: true, }; -}; +} export function fetchFavouritedStatusesSuccess(statuses, next) { return { @@ -44,7 +44,7 @@ export function fetchFavouritedStatusesSuccess(statuses, next) { next, skipLoading: true, }; -}; +} export function fetchFavouritedStatusesFail(error) { return { @@ -52,7 +52,7 @@ export function fetchFavouritedStatusesFail(error) { error, skipLoading: true, }; -}; +} export function expandFavouritedStatuses() { return (dispatch, getState) => { @@ -74,13 +74,13 @@ export function expandFavouritedStatuses() { dispatch(expandFavouritedStatusesFail(error)); }); }; -}; +} export function expandFavouritedStatusesRequest() { return { type: FAVOURITED_STATUSES_EXPAND_REQUEST, }; -}; +} export function expandFavouritedStatusesSuccess(statuses, next) { return { @@ -88,11 +88,11 @@ export function expandFavouritedStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function expandFavouritedStatusesFail(error) { return { type: FAVOURITED_STATUSES_EXPAND_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/groups.js b/app/soapbox/actions/groups.js index 588cbe6e2..94b3675ad 100644 --- a/app/soapbox/actions/groups.js +++ b/app/soapbox/actions/groups.js @@ -102,7 +102,7 @@ export function fetchGroupRelationships(groupIds) { dispatch(fetchGroupRelationshipsFail(error)); }); }; -}; +} export function fetchGroupRelationshipsRequest(ids) { return { @@ -110,7 +110,7 @@ export function fetchGroupRelationshipsRequest(ids) { ids, skipLoading: true, }; -}; +} export function fetchGroupRelationshipsSuccess(relationships) { return { @@ -118,7 +118,7 @@ export function fetchGroupRelationshipsSuccess(relationships) { relationships, skipLoading: true, }; -}; +} export function fetchGroupRelationshipsFail(error) { return { @@ -126,7 +126,7 @@ export function fetchGroupRelationshipsFail(error) { error, skipLoading: true, }; -}; +} export const fetchGroups = (tab) => (dispatch, getState) => { if (!isLoggedIn(getState)) return; @@ -168,7 +168,7 @@ export function joinGroup(id) { dispatch(joinGroupFail(id, error)); }); }; -}; +} export function leaveGroup(id) { return (dispatch, getState) => { @@ -182,49 +182,49 @@ export function leaveGroup(id) { dispatch(leaveGroupFail(id, error)); }); }; -}; +} export function joinGroupRequest(id) { return { type: GROUP_JOIN_REQUEST, id, }; -}; +} export function joinGroupSuccess(relationship) { return { type: GROUP_JOIN_SUCCESS, relationship, }; -}; +} export function joinGroupFail(error) { return { type: GROUP_JOIN_FAIL, error, }; -}; +} export function leaveGroupRequest(id) { return { type: GROUP_LEAVE_REQUEST, id, }; -}; +} export function leaveGroupSuccess(relationship) { return { type: GROUP_LEAVE_SUCCESS, relationship, }; -}; +} export function leaveGroupFail(error) { return { type: GROUP_LEAVE_FAIL, error, }; -}; +} export function fetchMembers(id) { return (dispatch, getState) => { @@ -242,14 +242,14 @@ export function fetchMembers(id) { dispatch(fetchMembersFail(id, error)); }); }; -}; +} export function fetchMembersRequest(id) { return { type: GROUP_MEMBERS_FETCH_REQUEST, id, }; -}; +} export function fetchMembersSuccess(id, accounts, next) { return { @@ -258,7 +258,7 @@ export function fetchMembersSuccess(id, accounts, next) { accounts, next, }; -}; +} export function fetchMembersFail(id, error) { return { @@ -266,7 +266,7 @@ export function fetchMembersFail(id, error) { id, error, }; -}; +} export function expandMembers(id) { return (dispatch, getState) => { @@ -290,14 +290,14 @@ export function expandMembers(id) { dispatch(expandMembersFail(id, error)); }); }; -}; +} export function expandMembersRequest(id) { return { type: GROUP_MEMBERS_EXPAND_REQUEST, id, }; -}; +} export function expandMembersSuccess(id, accounts, next) { return { @@ -306,7 +306,7 @@ export function expandMembersSuccess(id, accounts, next) { accounts, next, }; -}; +} export function expandMembersFail(id, error) { return { @@ -314,7 +314,7 @@ export function expandMembersFail(id, error) { id, error, }; -}; +} export function fetchRemovedAccounts(id) { return (dispatch, getState) => { @@ -332,14 +332,14 @@ export function fetchRemovedAccounts(id) { dispatch(fetchRemovedAccountsFail(id, error)); }); }; -}; +} export function fetchRemovedAccountsRequest(id) { return { type: GROUP_REMOVED_ACCOUNTS_FETCH_REQUEST, id, }; -}; +} export function fetchRemovedAccountsSuccess(id, accounts, next) { return { @@ -348,7 +348,7 @@ export function fetchRemovedAccountsSuccess(id, accounts, next) { accounts, next, }; -}; +} export function fetchRemovedAccountsFail(id, error) { return { @@ -356,7 +356,7 @@ export function fetchRemovedAccountsFail(id, error) { id, error, }; -}; +} export function expandRemovedAccounts(id) { return (dispatch, getState) => { @@ -380,14 +380,14 @@ export function expandRemovedAccounts(id) { dispatch(expandRemovedAccountsFail(id, error)); }); }; -}; +} export function expandRemovedAccountsRequest(id) { return { type: GROUP_REMOVED_ACCOUNTS_EXPAND_REQUEST, id, }; -}; +} export function expandRemovedAccountsSuccess(id, accounts, next) { return { @@ -396,7 +396,7 @@ export function expandRemovedAccountsSuccess(id, accounts, next) { accounts, next, }; -}; +} export function expandRemovedAccountsFail(id, error) { return { @@ -404,7 +404,7 @@ export function expandRemovedAccountsFail(id, error) { id, error, }; -}; +} export function removeRemovedAccount(groupId, id) { return (dispatch, getState) => { @@ -418,7 +418,7 @@ export function removeRemovedAccount(groupId, id) { dispatch(removeRemovedAccountFail(groupId, id, error)); }); }; -}; +} export function removeRemovedAccountRequest(groupId, id) { return { @@ -426,7 +426,7 @@ export function removeRemovedAccountRequest(groupId, id) { groupId, id, }; -}; +} export function removeRemovedAccountSuccess(groupId, id) { return { @@ -434,7 +434,7 @@ export function removeRemovedAccountSuccess(groupId, id) { groupId, id, }; -}; +} export function removeRemovedAccountFail(groupId, id, error) { return { @@ -443,7 +443,7 @@ export function removeRemovedAccountFail(groupId, id, error) { id, error, }; -}; +} export function createRemovedAccount(groupId, id) { return (dispatch, getState) => { @@ -457,7 +457,7 @@ export function createRemovedAccount(groupId, id) { dispatch(createRemovedAccountFail(groupId, id, error)); }); }; -}; +} export function createRemovedAccountRequest(groupId, id) { return { @@ -465,7 +465,7 @@ export function createRemovedAccountRequest(groupId, id) { groupId, id, }; -}; +} export function createRemovedAccountSuccess(groupId, id) { return { @@ -473,7 +473,7 @@ export function createRemovedAccountSuccess(groupId, id) { groupId, id, }; -}; +} export function createRemovedAccountFail(groupId, id, error) { return { @@ -482,7 +482,7 @@ export function createRemovedAccountFail(groupId, id, error) { id, error, }; -}; +} export function groupRemoveStatus(groupId, id) { return (dispatch, getState) => { @@ -496,7 +496,7 @@ export function groupRemoveStatus(groupId, id) { dispatch(groupRemoveStatusFail(groupId, id, error)); }); }; -}; +} export function groupRemoveStatusRequest(groupId, id) { return { @@ -504,7 +504,7 @@ export function groupRemoveStatusRequest(groupId, id) { groupId, id, }; -}; +} export function groupRemoveStatusSuccess(groupId, id) { return { @@ -512,7 +512,7 @@ export function groupRemoveStatusSuccess(groupId, id) { groupId, id, }; -}; +} export function groupRemoveStatusFail(groupId, id, error) { return { @@ -521,4 +521,4 @@ export function groupRemoveStatusFail(groupId, id, error) { id, error, }; -}; +} diff --git a/app/soapbox/actions/height_cache.js b/app/soapbox/actions/height_cache.js index 8612b2a88..74b8dd398 100644 --- a/app/soapbox/actions/height_cache.js +++ b/app/soapbox/actions/height_cache.js @@ -8,10 +8,10 @@ export function setHeight(key, id, height) { id, height, }; -}; +} export function clearHeight() { return { type: HEIGHT_CACHE_CLEAR, }; -}; +} diff --git a/app/soapbox/actions/importer/index.js b/app/soapbox/actions/importer/index.js index 98d0a8d36..7955d53e9 100644 --- a/app/soapbox/actions/importer/index.js +++ b/app/soapbox/actions/importer/index.js @@ -121,4 +121,4 @@ export function importFetchedPoll(poll) { export function importErrorWhileFetchingAccountByUsername(username) { return { type: ACCOUNT_FETCH_FAIL_FOR_USERNAME_LOOKUP, username }; -}; +} diff --git a/app/soapbox/actions/instance.js b/app/soapbox/actions/instance.js index 94b5da79d..7e17f6d71 100644 --- a/app/soapbox/actions/instance.js +++ b/app/soapbox/actions/instance.js @@ -44,7 +44,7 @@ export function instanceFail(error) { error, skipAlert: true, }; -}; +} export function importNodeinfo(nodeinfo) { return { @@ -59,4 +59,4 @@ export function nodeinfoFail(error) { error, skipAlert: true, }; -}; +} diff --git a/app/soapbox/actions/interactions.js b/app/soapbox/actions/interactions.js index a6f32c607..aaa6b6143 100644 --- a/app/soapbox/actions/interactions.js +++ b/app/soapbox/actions/interactions.js @@ -64,7 +64,7 @@ export function reblog(status) { dispatch(reblogFail(status, error)); }); }; -}; +} export function unreblog(status) { return (dispatch, getState) => { @@ -79,7 +79,7 @@ export function unreblog(status) { dispatch(unreblogFail(status, error)); }); }; -}; +} export function reblogRequest(status) { return { @@ -87,7 +87,7 @@ export function reblogRequest(status) { status: status, skipLoading: true, }; -}; +} export function reblogSuccess(status) { return { @@ -95,7 +95,7 @@ export function reblogSuccess(status) { status: status, skipLoading: true, }; -}; +} export function reblogFail(status, error) { return { @@ -104,7 +104,7 @@ export function reblogFail(status, error) { error: error, skipLoading: true, }; -}; +} export function unreblogRequest(status) { return { @@ -112,7 +112,7 @@ export function unreblogRequest(status) { status: status, skipLoading: true, }; -}; +} export function unreblogSuccess(status) { return { @@ -120,7 +120,7 @@ export function unreblogSuccess(status) { status: status, skipLoading: true, }; -}; +} export function unreblogFail(status, error) { return { @@ -129,7 +129,7 @@ export function unreblogFail(status, error) { error: error, skipLoading: true, }; -}; +} export function favourite(status) { return function(dispatch, getState) { @@ -144,7 +144,7 @@ export function favourite(status) { dispatch(favouriteFail(status, error)); }); }; -}; +} export function unfavourite(status) { return (dispatch, getState) => { @@ -159,7 +159,7 @@ export function unfavourite(status) { dispatch(unfavouriteFail(status, error)); }); }; -}; +} export function favouriteRequest(status) { return { @@ -167,7 +167,7 @@ export function favouriteRequest(status) { status: status, skipLoading: true, }; -}; +} export function favouriteSuccess(status) { return { @@ -175,7 +175,7 @@ export function favouriteSuccess(status) { status: status, skipLoading: true, }; -}; +} export function favouriteFail(status, error) { return { @@ -184,7 +184,7 @@ export function favouriteFail(status, error) { error: error, skipLoading: true, }; -}; +} export function unfavouriteRequest(status) { return { @@ -192,7 +192,7 @@ export function unfavouriteRequest(status) { status: status, skipLoading: true, }; -}; +} export function unfavouriteSuccess(status) { return { @@ -200,7 +200,7 @@ export function unfavouriteSuccess(status) { status: status, skipLoading: true, }; -}; +} export function unfavouriteFail(status, error) { return { @@ -209,7 +209,7 @@ export function unfavouriteFail(status, error) { error: error, skipLoading: true, }; -}; +} export function bookmark(intl, status) { return function(dispatch, getState) { @@ -223,7 +223,7 @@ export function bookmark(intl, status) { dispatch(bookmarkFail(status, error)); }); }; -}; +} export function unbookmark(intl, status) { return (dispatch, getState) => { @@ -237,14 +237,14 @@ export function unbookmark(intl, status) { dispatch(unbookmarkFail(status, error)); }); }; -}; +} export function bookmarkRequest(status) { return { type: BOOKMARK_REQUEST, status: status, }; -}; +} export function bookmarkSuccess(status, response) { return { @@ -252,7 +252,7 @@ export function bookmarkSuccess(status, response) { status: status, response: response, }; -}; +} export function bookmarkFail(status, error) { return { @@ -260,14 +260,14 @@ export function bookmarkFail(status, error) { status: status, error: error, }; -}; +} export function unbookmarkRequest(status) { return { type: UNBOOKMARK_REQUEST, status: status, }; -}; +} export function unbookmarkSuccess(status, response) { return { @@ -275,7 +275,7 @@ export function unbookmarkSuccess(status, response) { status: status, response: response, }; -}; +} export function unbookmarkFail(status, error) { return { @@ -283,7 +283,7 @@ export function unbookmarkFail(status, error) { status: status, error: error, }; -}; +} export function fetchReblogs(id) { return (dispatch, getState) => { @@ -298,14 +298,14 @@ export function fetchReblogs(id) { dispatch(fetchReblogsFail(id, error)); }); }; -}; +} export function fetchReblogsRequest(id) { return { type: REBLOGS_FETCH_REQUEST, id, }; -}; +} export function fetchReblogsSuccess(id, accounts) { return { @@ -313,14 +313,14 @@ export function fetchReblogsSuccess(id, accounts) { id, accounts, }; -}; +} export function fetchReblogsFail(id, error) { return { type: REBLOGS_FETCH_FAIL, error, }; -}; +} export function fetchFavourites(id) { return (dispatch, getState) => { @@ -335,14 +335,14 @@ export function fetchFavourites(id) { dispatch(fetchFavouritesFail(id, error)); }); }; -}; +} export function fetchFavouritesRequest(id) { return { type: FAVOURITES_FETCH_REQUEST, id, }; -}; +} export function fetchFavouritesSuccess(id, accounts) { return { @@ -350,14 +350,14 @@ export function fetchFavouritesSuccess(id, accounts) { id, accounts, }; -}; +} export function fetchFavouritesFail(id, error) { return { type: FAVOURITES_FETCH_FAIL, error, }; -}; +} export function pin(status) { return (dispatch, getState) => { @@ -372,7 +372,7 @@ export function pin(status) { dispatch(pinFail(status, error)); }); }; -}; +} export function pinRequest(status) { return { @@ -380,7 +380,7 @@ export function pinRequest(status) { status, skipLoading: true, }; -}; +} export function pinSuccess(status) { return { @@ -388,7 +388,7 @@ export function pinSuccess(status) { status, skipLoading: true, }; -}; +} export function pinFail(status, error) { return { @@ -397,7 +397,7 @@ export function pinFail(status, error) { error, skipLoading: true, }; -}; +} export function unpin(status) { return (dispatch, getState) => { @@ -412,7 +412,7 @@ export function unpin(status) { dispatch(unpinFail(status, error)); }); }; -}; +} export function unpinRequest(status) { return { @@ -420,7 +420,7 @@ export function unpinRequest(status) { status, skipLoading: true, }; -}; +} export function unpinSuccess(status) { return { @@ -428,7 +428,7 @@ export function unpinSuccess(status) { status, skipLoading: true, }; -}; +} export function unpinFail(status, error) { return { @@ -437,4 +437,4 @@ export function unpinFail(status, error) { error, skipLoading: true, }; -}; +} diff --git a/app/soapbox/actions/me.js b/app/soapbox/actions/me.js index 602334bd0..240e26bf8 100644 --- a/app/soapbox/actions/me.js +++ b/app/soapbox/actions/me.js @@ -22,12 +22,12 @@ export function fetchMe() { if (!token) { dispatch({ type: ME_FETCH_SKIP }); return noOp(); - }; + } dispatch(fetchMeRequest()); return dispatch(verifyCredentials(token)).catch(error => { dispatch(fetchMeFail(error)); - });; + }); }; } @@ -66,7 +66,7 @@ export function fetchMeFail(error) { error, skipAlert: true, }; -}; +} export function patchMeRequest() { return { @@ -89,4 +89,4 @@ export function patchMeFail(error) { type: ME_PATCH_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/mfa.js b/app/soapbox/actions/mfa.js index 0a8a706eb..7cde55b84 100644 --- a/app/soapbox/actions/mfa.js +++ b/app/soapbox/actions/mfa.js @@ -36,19 +36,19 @@ export function fetchUserMfaSettingsRequest() { return { type: TOTP_SETTINGS_FETCH_REQUEST, }; -}; +} export function fetchUserMfaSettingsSuccess() { return { type: TOTP_SETTINGS_FETCH_SUCCESS, }; -}; +} export function fetchUserMfaSettingsFail() { return { type: TOTP_SETTINGS_FETCH_FAIL, }; -}; +} export function fetchBackupCodes() { return (dispatch, getState) => { @@ -66,21 +66,21 @@ export function fetchBackupCodesRequest() { return { type: BACKUP_CODES_FETCH_REQUEST, }; -}; +} export function fetchBackupCodesSuccess(backup_codes, response) { return { type: BACKUP_CODES_FETCH_SUCCESS, backup_codes: response.data, }; -}; +} export function fetchBackupCodesFail(error) { return { type: BACKUP_CODES_FETCH_FAIL, error, }; -}; +} export function fetchToptSetup() { return (dispatch, getState) => { @@ -98,21 +98,21 @@ export function fetchToptSetupRequest() { return { type: TOTP_SETUP_FETCH_REQUEST, }; -}; +} export function fetchToptSetupSuccess(totp_setup, response) { return { type: TOTP_SETUP_FETCH_SUCCESS, totp_setup: response.data, }; -}; +} export function fetchToptSetupFail(error) { return { type: TOTP_SETUP_FETCH_FAIL, error, }; -}; +} export function confirmToptSetup(code, password) { return (dispatch, getState) => { @@ -133,20 +133,20 @@ export function confirmToptRequest() { return { type: CONFIRM_TOTP_REQUEST, }; -}; +} export function confirmToptSuccess(backup_codes, response) { return { type: CONFIRM_TOTP_SUCCESS, }; -}; +} export function confirmToptFail(error) { return { type: CONFIRM_TOTP_FAIL, error, }; -}; +} export function disableToptSetup(password) { return (dispatch, getState) => { @@ -164,17 +164,17 @@ export function disableToptRequest() { return { type: DISABLE_TOTP_REQUEST, }; -}; +} export function disableToptSuccess(backup_codes, response) { return { type: DISABLE_TOTP_SUCCESS, }; -}; +} export function disableToptFail(error) { return { type: DISABLE_TOTP_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/modal.js b/app/soapbox/actions/modal.js index 80e15c28e..eaa5a315d 100644 --- a/app/soapbox/actions/modal.js +++ b/app/soapbox/actions/modal.js @@ -7,10 +7,10 @@ export function openModal(type, props) { modalType: type, modalProps: props, }; -}; +} export function closeModal() { return { type: MODAL_CLOSE, }; -}; +} diff --git a/app/soapbox/actions/mutes.js b/app/soapbox/actions/mutes.js index 7b9ef58c4..3cdc3b5fb 100644 --- a/app/soapbox/actions/mutes.js +++ b/app/soapbox/actions/mutes.js @@ -30,13 +30,13 @@ export function fetchMutes() { dispatch(fetchRelationships(response.data.map(item => item.id))); }).catch(error => dispatch(fetchMutesFail(error))); }; -}; +} export function fetchMutesRequest() { return { type: MUTES_FETCH_REQUEST, }; -}; +} export function fetchMutesSuccess(accounts, next) { return { @@ -44,14 +44,14 @@ export function fetchMutesSuccess(accounts, next) { accounts, next, }; -}; +} export function fetchMutesFail(error) { return { type: MUTES_FETCH_FAIL, error, }; -}; +} export function expandMutes() { return (dispatch, getState) => { @@ -73,13 +73,13 @@ export function expandMutes() { dispatch(fetchRelationships(response.data.map(item => item.id))); }).catch(error => dispatch(expandMutesFail(error))); }; -}; +} export function expandMutesRequest() { return { type: MUTES_EXPAND_REQUEST, }; -}; +} export function expandMutesSuccess(accounts, next) { return { @@ -87,14 +87,14 @@ export function expandMutesSuccess(accounts, next) { accounts, next, }; -}; +} export function expandMutesFail(error) { return { type: MUTES_EXPAND_FAIL, error, }; -}; +} export function initMuteModal(account) { return dispatch => { diff --git a/app/soapbox/actions/notifications.js b/app/soapbox/actions/notifications.js index e0d09c694..18f31b810 100644 --- a/app/soapbox/actions/notifications.js +++ b/app/soapbox/actions/notifications.js @@ -78,7 +78,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) { fetchRelatedRelationships(dispatch, [notification]); } }; -}; +} export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) { return (dispatch, getState) => { @@ -133,7 +133,7 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale, dispatch(updateNotifications(notification, intlMessages, intlLocale)); } }; -}; +} export function dequeueNotifications() { return (dispatch, getState) => { @@ -155,7 +155,7 @@ export function dequeueNotifications() { }); dispatch(markReadNotifications()); }; -}; +} const excludeTypesFromSettings = getState => getSettings(getState()).getIn(['notifications', 'shows']).filter(enabled => !enabled).keySeq().toJS(); @@ -223,14 +223,14 @@ export function expandNotifications({ maxId } = {}, done = noOp) { done(); }); }; -}; +} export function expandNotificationsRequest(isLoadingMore) { return { type: NOTIFICATIONS_EXPAND_REQUEST, skipLoading: !isLoadingMore, }; -}; +} export function expandNotificationsSuccess(notifications, next, isLoadingMore) { return { @@ -239,7 +239,7 @@ export function expandNotificationsSuccess(notifications, next, isLoadingMore) { next, skipLoading: !isLoadingMore, }; -}; +} export function expandNotificationsFail(error, isLoadingMore) { return { @@ -247,7 +247,7 @@ export function expandNotificationsFail(error, isLoadingMore) { error, skipLoading: !isLoadingMore, }; -}; +} export function clearNotifications() { return (dispatch, getState) => { @@ -259,7 +259,7 @@ export function clearNotifications() { api(getState).post('/api/v1/notifications/clear'); }; -}; +} export function scrollTopNotifications(top) { return (dispatch, getState) => { diff --git a/app/soapbox/actions/patron.js b/app/soapbox/actions/patron.js index 8cf64d4c4..a9a8ff4d5 100644 --- a/app/soapbox/actions/patron.js +++ b/app/soapbox/actions/patron.js @@ -17,7 +17,7 @@ export function fetchPatronInstance() { dispatch(fetchInstanceFail(error)); }); }; -}; +} export function fetchPatronAccount(apId) { return (dispatch, getState) => { @@ -44,7 +44,7 @@ function fetchInstanceFail(error) { error, skipAlert: true, }; -}; +} function importFetchedAccount(account) { return { diff --git a/app/soapbox/actions/pin_statuses.js b/app/soapbox/actions/pin_statuses.js index 17f1bfd14..ecab511d0 100644 --- a/app/soapbox/actions/pin_statuses.js +++ b/app/soapbox/actions/pin_statuses.js @@ -20,13 +20,13 @@ export function fetchPinnedStatuses() { dispatch(fetchPinnedStatusesFail(error)); }); }; -}; +} export function fetchPinnedStatusesRequest() { return { type: PINNED_STATUSES_FETCH_REQUEST, }; -}; +} export function fetchPinnedStatusesSuccess(statuses, next) { return { @@ -34,11 +34,11 @@ export function fetchPinnedStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function fetchPinnedStatusesFail(error) { return { type: PINNED_STATUSES_FETCH_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/reports.js b/app/soapbox/actions/reports.js index 9328e0141..9d0d4e581 100644 --- a/app/soapbox/actions/reports.js +++ b/app/soapbox/actions/reports.js @@ -23,7 +23,7 @@ export function initReport(account, status) { dispatch(openModal('REPORT')); }; -}; +} export function initReportById(accountId) { return (dispatch, getState) => { @@ -34,13 +34,13 @@ export function initReportById(accountId) { dispatch(openModal('REPORT')); }; -}; +} export function cancelReport() { return { type: REPORT_CANCEL, }; -}; +} export function toggleStatusReport(statusId, checked) { return { @@ -48,7 +48,7 @@ export function toggleStatusReport(statusId, checked) { statusId, checked, }; -}; +} export function submitReport() { return (dispatch, getState) => { @@ -64,45 +64,45 @@ export function submitReport() { dispatch(submitReportSuccess(response.data)); }).catch(error => dispatch(submitReportFail(error))); }; -}; +} export function submitReportRequest() { return { type: REPORT_SUBMIT_REQUEST, }; -}; +} export function submitReportSuccess(report) { return { type: REPORT_SUBMIT_SUCCESS, report, }; -}; +} export function submitReportFail(error) { return { type: REPORT_SUBMIT_FAIL, error, }; -}; +} export function changeReportComment(comment) { return { type: REPORT_COMMENT_CHANGE, comment, }; -}; +} export function changeReportForward(forward) { return { type: REPORT_FORWARD_CHANGE, forward, }; -}; +} export function changeReportBlock(block) { return { type: REPORT_BLOCK_CHANGE, block, }; -}; +} diff --git a/app/soapbox/actions/scheduled_statuses.js b/app/soapbox/actions/scheduled_statuses.js index 5d5b493f1..fd6f3a241 100644 --- a/app/soapbox/actions/scheduled_statuses.js +++ b/app/soapbox/actions/scheduled_statuses.js @@ -27,7 +27,7 @@ export function fetchScheduledStatuses() { dispatch(fetchScheduledStatusesFail(error)); }); }; -}; +} export function cancelScheduledStatus(id) { return (dispatch, getState) => { @@ -44,7 +44,7 @@ export function fetchScheduledStatusesRequest() { return { type: SCHEDULED_STATUSES_FETCH_REQUEST, }; -}; +} export function fetchScheduledStatusesSuccess(statuses, next) { return { @@ -52,14 +52,14 @@ export function fetchScheduledStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function fetchScheduledStatusesFail(error) { return { type: SCHEDULED_STATUSES_FETCH_FAIL, error, }; -}; +} export function expandScheduledStatuses() { return (dispatch, getState) => { @@ -78,13 +78,13 @@ export function expandScheduledStatuses() { dispatch(expandScheduledStatusesFail(error)); }); }; -}; +} export function expandScheduledStatusesRequest() { return { type: SCHEDULED_STATUSES_EXPAND_REQUEST, }; -}; +} export function expandScheduledStatusesSuccess(statuses, next) { return { @@ -92,11 +92,11 @@ export function expandScheduledStatusesSuccess(statuses, next) { statuses, next, }; -}; +} export function expandScheduledStatusesFail(error) { return { type: SCHEDULED_STATUSES_EXPAND_FAIL, error, }; -}; +} diff --git a/app/soapbox/actions/search.js b/app/soapbox/actions/search.js index c974819fc..dcd0205fb 100644 --- a/app/soapbox/actions/search.js +++ b/app/soapbox/actions/search.js @@ -21,13 +21,13 @@ export function changeSearch(value) { type: SEARCH_CHANGE, value, }; -}; +} export function clearSearch() { return { type: SEARCH_CLEAR, }; -}; +} export function submitSearch() { return (dispatch, getState) => { @@ -60,27 +60,27 @@ export function submitSearch() { dispatch(fetchSearchFail(error)); }); }; -}; +} export function fetchSearchRequest() { return { type: SEARCH_FETCH_REQUEST, }; -}; +} export function fetchSearchSuccess(results) { return { type: SEARCH_FETCH_SUCCESS, results, }; -}; +} export function fetchSearchFail(error) { return { type: SEARCH_FETCH_FAIL, error, }; -}; +} export const expandSearch = type => (dispatch, getState) => { const value = getState().getIn(['search', 'value']); diff --git a/app/soapbox/actions/settings.js b/app/soapbox/actions/settings.js index 54f2fb78b..34b266262 100644 --- a/app/soapbox/actions/settings.js +++ b/app/soapbox/actions/settings.js @@ -157,7 +157,7 @@ export function changeSetting(path, value) { dispatch(saveSettings()); }; -}; +} const debouncedSave = debounce((dispatch, getState) => { if (!isLoggedIn(getState)) return; @@ -180,4 +180,4 @@ const debouncedSave = debounce((dispatch, getState) => { export function saveSettings() { return (dispatch, getState) => debouncedSave(dispatch, getState); -}; +} diff --git a/app/soapbox/actions/sidebar.js b/app/soapbox/actions/sidebar.js index bd6467963..247c6df83 100644 --- a/app/soapbox/actions/sidebar.js +++ b/app/soapbox/actions/sidebar.js @@ -5,10 +5,10 @@ export function openSidebar() { return { type: SIDEBAR_OPEN, }; -}; +} export function closeSidebar() { return { type: SIDEBAR_CLOSE, }; -}; +} diff --git a/app/soapbox/actions/snackbar.js b/app/soapbox/actions/snackbar.js index e6f0a6595..1872c82bd 100644 --- a/app/soapbox/actions/snackbar.js +++ b/app/soapbox/actions/snackbar.js @@ -8,15 +8,15 @@ const show = (severity, message) => ({ export function info(message) { return show('info', message); -}; +} export function success(message) { return show('success', message); -}; +} export function error(message) { return show('error', message); -}; +} export default { info, diff --git a/app/soapbox/actions/soapbox.js b/app/soapbox/actions/soapbox.js index 89461da40..25e9dcecf 100644 --- a/app/soapbox/actions/soapbox.js +++ b/app/soapbox/actions/soapbox.js @@ -93,7 +93,7 @@ export function fetchSoapboxJson() { export function importSoapboxConfig(soapboxConfig) { if (!soapboxConfig.brandColor) { soapboxConfig.brandColor = '#0482d8'; - }; + } return { type: SOAPBOX_CONFIG_REQUEST_SUCCESS, soapboxConfig, diff --git a/app/soapbox/actions/statuses.js b/app/soapbox/actions/statuses.js index 0c6dd73ab..041696fa8 100644 --- a/app/soapbox/actions/statuses.js +++ b/app/soapbox/actions/statuses.js @@ -39,7 +39,7 @@ export function fetchStatusRequest(id, skipLoading) { id, skipLoading, }; -}; +} export function createStatus(params, idempotencyKey) { return (dispatch, getState) => { @@ -55,7 +55,7 @@ export function createStatus(params, idempotencyKey) { throw error; }); }; -}; +} export function fetchStatus(id) { return (dispatch, getState) => { @@ -76,7 +76,7 @@ export function fetchStatus(id) { dispatch(fetchStatusFail(id, error, skipLoading)); }); }; -}; +} export function fetchStatusSuccess(status, skipLoading) { return { @@ -84,7 +84,7 @@ export function fetchStatusSuccess(status, skipLoading) { status, skipLoading, }; -}; +} export function fetchStatusFail(id, error, skipLoading) { return { @@ -94,7 +94,7 @@ export function fetchStatusFail(id, error, skipLoading) { skipLoading, skipAlert: true, }; -}; +} export function redraft(status, raw_text) { return { @@ -102,7 +102,7 @@ export function redraft(status, raw_text) { status, raw_text, }; -}; +} export function deleteStatus(id, routerHistory, withRedraft = false) { return (dispatch, getState) => { @@ -128,21 +128,21 @@ export function deleteStatus(id, routerHistory, withRedraft = false) { dispatch(deleteStatusFail(id, error)); }); }; -}; +} export function deleteStatusRequest(id) { return { type: STATUS_DELETE_REQUEST, id: id, }; -}; +} export function deleteStatusSuccess(id) { return { type: STATUS_DELETE_SUCCESS, id: id, }; -}; +} export function deleteStatusFail(id, error) { return { @@ -150,7 +150,7 @@ export function deleteStatusFail(id, error) { id: id, error: error, }; -}; +} export function fetchContext(id) { return (dispatch, getState) => { @@ -168,14 +168,14 @@ export function fetchContext(id) { dispatch(fetchContextFail(id, error)); }); }; -}; +} export function fetchContextRequest(id) { return { type: CONTEXT_FETCH_REQUEST, id, }; -}; +} export function fetchContextSuccess(id, ancestors, descendants) { return { @@ -184,7 +184,7 @@ export function fetchContextSuccess(id, ancestors, descendants) { ancestors, descendants, }; -}; +} export function fetchContextFail(id, error) { return { @@ -193,7 +193,7 @@ export function fetchContextFail(id, error) { error, skipAlert: true, }; -}; +} export function muteStatus(id) { return (dispatch, getState) => { @@ -207,21 +207,21 @@ export function muteStatus(id) { dispatch(muteStatusFail(id, error)); }); }; -}; +} export function muteStatusRequest(id) { return { type: STATUS_MUTE_REQUEST, id, }; -}; +} export function muteStatusSuccess(id) { return { type: STATUS_MUTE_SUCCESS, id, }; -}; +} export function muteStatusFail(id, error) { return { @@ -229,7 +229,7 @@ export function muteStatusFail(id, error) { id, error, }; -}; +} export function unmuteStatus(id) { return (dispatch, getState) => { @@ -243,21 +243,21 @@ export function unmuteStatus(id) { dispatch(unmuteStatusFail(id, error)); }); }; -}; +} export function unmuteStatusRequest(id) { return { type: STATUS_UNMUTE_REQUEST, id, }; -}; +} export function unmuteStatusSuccess(id) { return { type: STATUS_UNMUTE_SUCCESS, id, }; -}; +} export function unmuteStatusFail(id, error) { return { @@ -265,7 +265,7 @@ export function unmuteStatusFail(id, error) { id, error, }; -}; +} export function hideStatus(ids) { if (!Array.isArray(ids)) { @@ -276,7 +276,7 @@ export function hideStatus(ids) { type: STATUS_HIDE, ids, }; -}; +} export function revealStatus(ids) { if (!Array.isArray(ids)) { @@ -287,4 +287,4 @@ export function revealStatus(ids) { type: STATUS_REVEAL, ids, }; -}; +} diff --git a/app/soapbox/actions/suggestions.js b/app/soapbox/actions/suggestions.js index 788166d8b..be00cb610 100644 --- a/app/soapbox/actions/suggestions.js +++ b/app/soapbox/actions/suggestions.js @@ -17,14 +17,14 @@ export function fetchSuggestions() { dispatch(fetchSuggestionsSuccess(response.data)); }).catch(error => dispatch(fetchSuggestionsFail(error))); }; -}; +} export function fetchSuggestionsRequest() { return { type: SUGGESTIONS_FETCH_REQUEST, skipLoading: true, }; -}; +} export function fetchSuggestionsSuccess(accounts) { return { @@ -32,7 +32,7 @@ export function fetchSuggestionsSuccess(accounts) { accounts, skipLoading: true, }; -}; +} export function fetchSuggestionsFail(error) { return { @@ -41,7 +41,7 @@ export function fetchSuggestionsFail(error) { skipLoading: true, skipAlert: true, }; -}; +} export const dismissSuggestion = accountId => (dispatch, getState) => { if (!isLoggedIn(getState)) return; diff --git a/app/soapbox/actions/timelines.js b/app/soapbox/actions/timelines.js index 3226f2fcf..137714a2a 100644 --- a/app/soapbox/actions/timelines.js +++ b/app/soapbox/actions/timelines.js @@ -47,7 +47,7 @@ export function updateTimeline(timeline, statusId, accept) { statusId, }); }; -}; +} export function updateTimelineQueue(timeline, statusId, accept) { return dispatch => { @@ -61,7 +61,7 @@ export function updateTimelineQueue(timeline, statusId, accept) { statusId, }); }; -}; +} export function dequeueTimeline(timelineId, expandFunc, optionalExpandArgs) { return (dispatch, getState) => { @@ -88,7 +88,7 @@ export function dequeueTimeline(timelineId, expandFunc, optionalExpandArgs) { } } }; -}; +} export function deleteFromTimelines(id) { return (dispatch, getState) => { @@ -104,13 +104,13 @@ export function deleteFromTimelines(id) { reblogOf, }); }; -}; +} export function clearTimeline(timeline) { return (dispatch) => { dispatch({ type: TIMELINE_CLEAR, timeline }); }; -}; +} const noOp = () => {}; @@ -148,7 +148,7 @@ export function expandTimeline(timelineId, path, params = {}, done = noOp) { done(); }); }; -}; +} export const expandHomeTimeline = ({ maxId } = {}, done = noOp) => expandTimeline('home', '/api/v1/timelines/home', { max_id: maxId }, done); @@ -185,7 +185,7 @@ export function expandTimelineRequest(timeline, isLoadingMore) { timeline, skipLoading: !isLoadingMore, }; -}; +} export function expandTimelineSuccess(timeline, statuses, next, partial, isLoadingRecent, isLoadingMore) { return { @@ -197,7 +197,7 @@ export function expandTimelineSuccess(timeline, statuses, next, partial, isLoadi isLoadingRecent, skipLoading: !isLoadingMore, }; -}; +} export function expandTimelineFail(timeline, error, isLoadingMore) { return { @@ -206,21 +206,21 @@ export function expandTimelineFail(timeline, error, isLoadingMore) { error, skipLoading: !isLoadingMore, }; -}; +} export function connectTimeline(timeline) { return { type: TIMELINE_CONNECT, timeline, }; -}; +} export function disconnectTimeline(timeline) { return { type: TIMELINE_DISCONNECT, timeline, }; -}; +} export function scrollTopTimeline(timeline, top) { return { @@ -228,4 +228,4 @@ export function scrollTopTimeline(timeline, top) { timeline, top, }; -}; +} diff --git a/app/soapbox/actions/trends.js b/app/soapbox/actions/trends.js index b23c1c60e..36f801adf 100644 --- a/app/soapbox/actions/trends.js +++ b/app/soapbox/actions/trends.js @@ -12,14 +12,14 @@ export function fetchTrends() { dispatch(fetchTrendsSuccess(response.data)); }).catch(error => dispatch(fetchTrendsFail(error))); }; -}; +} export function fetchTrendsRequest() { return { type: TRENDS_FETCH_REQUEST, skipLoading: true, }; -}; +} export function fetchTrendsSuccess(tags) { return { @@ -27,7 +27,7 @@ export function fetchTrendsSuccess(tags) { tags, skipLoading: true, }; -}; +} export function fetchTrendsFail(error) { return { @@ -36,4 +36,4 @@ export function fetchTrendsFail(error) { skipLoading: true, skipAlert: true, }; -}; +} diff --git a/app/soapbox/components/progress_bar.js b/app/soapbox/components/progress_bar.js index 5ee94c75f..d338bca9c 100644 --- a/app/soapbox/components/progress_bar.js +++ b/app/soapbox/components/progress_bar.js @@ -14,4 +14,4 @@ export default class ProgressBar extends ImmutablePureComponent { ); } -}; +} diff --git a/app/soapbox/components/status_list.js b/app/soapbox/components/status_list.js index 5319ac632..44cc1cf03 100644 --- a/app/soapbox/components/status_list.js +++ b/app/soapbox/components/status_list.js @@ -38,7 +38,7 @@ export default class StatusList extends ImmutablePureComponent { componentDidMount() { this.handleDequeueTimeline(); - }; + } getFeaturedStatusCount = () => { return this.props.featuredStatusIds ? this.props.featuredStatusIds.size : 0; diff --git a/app/soapbox/containers/soapbox.js b/app/soapbox/containers/soapbox.js index ca58d57af..2486246f8 100644 --- a/app/soapbox/containers/soapbox.js +++ b/app/soapbox/containers/soapbox.js @@ -93,7 +93,7 @@ class SoapboxMount extends React.PureComponent { maybeUpdateMessages = prevProps => { if (this.props.locale !== prevProps.locale) { this.setMessages(); - }; + } } componentDidMount() { diff --git a/app/soapbox/features/account/components/header.js b/app/soapbox/features/account/components/header.js index 384547338..5ca1eb34f 100644 --- a/app/soapbox/features/account/components/header.js +++ b/app/soapbox/features/account/components/header.js @@ -262,7 +262,7 @@ class Header extends ImmutablePureComponent { } return info; - }; + } render() { const { account, intl, username, me } = this.props; diff --git a/app/soapbox/features/admin/components/latest_accounts_panel.js b/app/soapbox/features/admin/components/latest_accounts_panel.js index b2b8614f5..d08023b31 100644 --- a/app/soapbox/features/admin/components/latest_accounts_panel.js +++ b/app/soapbox/features/admin/components/latest_accounts_panel.js @@ -81,6 +81,6 @@ class LatestAccountsPanel extends ImmutablePureComponent { {...props} /> ); - }; + } -}; +} diff --git a/app/soapbox/features/admin/components/registration_mode_picker.js b/app/soapbox/features/admin/components/registration_mode_picker.js index 1e2f153ae..747964a02 100644 --- a/app/soapbox/features/admin/components/registration_mode_picker.js +++ b/app/soapbox/features/admin/components/registration_mode_picker.js @@ -82,6 +82,6 @@ class RegistrationModePicker extends ImmutablePureComponent { ); - }; + } } diff --git a/app/soapbox/features/auth_login/components/captcha.js b/app/soapbox/features/auth_login/components/captcha.js index 0e5b95815..712563e35 100644 --- a/app/soapbox/features/auth_login/components/captcha.js +++ b/app/soapbox/features/auth_login/components/captcha.js @@ -40,7 +40,7 @@ class CaptchaField extends React.Component { if (refreshInterval) { const refresh = setInterval(this.fetchCaptcha, refreshInterval); this.setState({ refresh }); - }; + } } endRefresh = () => { diff --git a/app/soapbox/features/chats/components/chat_message_list.js b/app/soapbox/features/chats/components/chat_message_list.js index d904bc4e8..6e570e06c 100644 --- a/app/soapbox/features/chats/components/chat_message_list.js +++ b/app/soapbox/features/chats/components/chat_message_list.js @@ -33,7 +33,7 @@ const timeChange = (prev, curr) => { if (prevDate !== currDate) { return currDate === nowDate ? 'today' : 'date'; - }; + } return null; }; diff --git a/app/soapbox/features/compose/components/schedule_form.js b/app/soapbox/features/compose/components/schedule_form.js index f374fb10e..e679259a4 100644 --- a/app/soapbox/features/compose/components/schedule_form.js +++ b/app/soapbox/features/compose/components/schedule_form.js @@ -57,7 +57,7 @@ class ScheduleForm extends React.Component { const selectedDate = new Date(time); return fiveMinutesFromNow.getTime() < selectedDate.getTime(); - }; + } handleRemove = e => { this.props.dispatch(removeSchedule()); diff --git a/app/soapbox/features/compose/util/counter.js b/app/soapbox/features/compose/util/counter.js index 700ba2163..95dc34a20 100644 --- a/app/soapbox/features/compose/util/counter.js +++ b/app/soapbox/features/compose/util/counter.js @@ -6,4 +6,4 @@ export function countableText(inputText) { return inputText .replace(urlRegex, urlPlaceholder) .replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/ig, '$1@$3'); -}; +} diff --git a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js index c72ba0691..1cc3aef73 100644 --- a/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js +++ b/app/soapbox/features/crypto_donate/components/crypto_donate_panel.js @@ -70,4 +70,4 @@ class CryptoDonatePanel extends ImmutablePureComponent { ); } -}; +} diff --git a/app/soapbox/features/filters/index.js b/app/soapbox/features/filters/index.js index d48667de3..934aba6e8 100644 --- a/app/soapbox/features/filters/index.js +++ b/app/soapbox/features/filters/index.js @@ -100,16 +100,16 @@ class Filters extends ImmutablePureComponent { if (home_timeline) { context.push('home'); - }; + } if (public_timeline) { context.push('public'); - }; + } if (notifications) { context.push('notifications'); - }; + } if (conversations) { context.push('thread'); - }; + } dispatch(createFilter(intl, phrase, expires_at, context, whole_word, irreversible)).then(response => { return dispatch(fetchFilters()); diff --git a/app/soapbox/features/pinned_statuses/index.js b/app/soapbox/features/pinned_statuses/index.js index ba0b10bf9..dd5447051 100644 --- a/app/soapbox/features/pinned_statuses/index.js +++ b/app/soapbox/features/pinned_statuses/index.js @@ -18,7 +18,7 @@ const mapStateToProps = (state, { params }) => { statusIds: state.getIn(['status_lists', 'pins', 'items']), hasMore: !!state.getIn(['status_lists', 'pins', 'next']), }; -};; +}; export default @connect(mapStateToProps) @injectIntl diff --git a/app/soapbox/features/scheduled_statuses/components/scheduled_status.js b/app/soapbox/features/scheduled_statuses/components/scheduled_status.js index b8f3e825e..4dcc387ab 100644 --- a/app/soapbox/features/scheduled_statuses/components/scheduled_status.js +++ b/app/soapbox/features/scheduled_statuses/components/scheduled_status.js @@ -87,4 +87,4 @@ class ScheduledStatus extends ImmutablePureComponent { ); } -}; +} diff --git a/app/soapbox/features/ui/components/account_list_panel.js b/app/soapbox/features/ui/components/account_list_panel.js index 2159b657b..2cac1c928 100644 --- a/app/soapbox/features/ui/components/account_list_panel.js +++ b/app/soapbox/features/ui/components/account_list_panel.js @@ -51,6 +51,6 @@ export default class AccountListPanel extends ImmutablePureComponent { } ); - }; + } -}; +} diff --git a/app/soapbox/features/ui/components/funding_panel.js b/app/soapbox/features/ui/components/funding_panel.js index 5b0b73e8b..90728caaa 100644 --- a/app/soapbox/features/ui/components/funding_panel.js +++ b/app/soapbox/features/ui/components/funding_panel.js @@ -60,7 +60,7 @@ class FundingPanel extends ImmutablePureComponent { ); } -}; +} const mapStateToProps = state => { return { diff --git a/app/soapbox/features/ui/components/profile_media_panel.js b/app/soapbox/features/ui/components/profile_media_panel.js index 52a3a3f63..83fed31a4 100644 --- a/app/soapbox/features/ui/components/profile_media_panel.js +++ b/app/soapbox/features/ui/components/profile_media_panel.js @@ -64,9 +64,9 @@ class ProfileMediaPanel extends ImmutablePureComponent { } ); - }; + } -}; +} const mapStateToProps = (state, { account }) => ({ attachments: getAccountGallery(state, account.get('id')), diff --git a/app/soapbox/features/ui/components/trends_panel.js b/app/soapbox/features/ui/components/trends_panel.js index 7e15f39f5..56e5f9255 100644 --- a/app/soapbox/features/ui/components/trends_panel.js +++ b/app/soapbox/features/ui/components/trends_panel.js @@ -48,9 +48,9 @@ class TrendsPanel extends ImmutablePureComponent { ); - }; + } -}; +} const mapStateToProps = state => ({ diff --git a/app/soapbox/features/ui/components/user_panel.js b/app/soapbox/features/ui/components/user_panel.js index 33c707d96..41fa65916 100644 --- a/app/soapbox/features/ui/components/user_panel.js +++ b/app/soapbox/features/ui/components/user_panel.js @@ -89,7 +89,7 @@ class UserPanel extends ImmutablePureComponent { ); } -}; +} const makeMapStateToProps = () => { const getAccount = makeGetAccount(); diff --git a/app/soapbox/features/ui/components/who_to_follow_panel.js b/app/soapbox/features/ui/components/who_to_follow_panel.js index 512f4db63..3013d3f80 100644 --- a/app/soapbox/features/ui/components/who_to_follow_panel.js +++ b/app/soapbox/features/ui/components/who_to_follow_panel.js @@ -56,9 +56,9 @@ class WhoToFollowPanel extends ImmutablePureComponent { ); - }; + } -}; +} const mapStateToProps = state => ({ suggestions: state.getIn(['suggestions', 'items']), diff --git a/app/soapbox/is_mobile.js b/app/soapbox/is_mobile.js index c21e9c0e0..125912421 100644 --- a/app/soapbox/is_mobile.js +++ b/app/soapbox/is_mobile.js @@ -6,7 +6,7 @@ const LAYOUT_BREAKPOINT = 630; export function isMobile(width) { return width <= LAYOUT_BREAKPOINT; -}; +} const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; @@ -26,4 +26,4 @@ export function isUserTouching() { export function isIOS() { return iOS; -}; +} diff --git a/app/soapbox/middleware/errors.js b/app/soapbox/middleware/errors.js index 3cebb42e0..1e36cc55f 100644 --- a/app/soapbox/middleware/errors.js +++ b/app/soapbox/middleware/errors.js @@ -14,4 +14,4 @@ export default function errorsMiddleware() { return next(action); }; -}; +} diff --git a/app/soapbox/middleware/loading_bar.js b/app/soapbox/middleware/loading_bar.js index a98f1bb2b..da8cc4c7d 100644 --- a/app/soapbox/middleware/loading_bar.js +++ b/app/soapbox/middleware/loading_bar.js @@ -22,4 +22,4 @@ export default function loadingBarMiddleware(config = {}) { return next(action); }; -}; +} diff --git a/app/soapbox/middleware/sounds.js b/app/soapbox/middleware/sounds.js index e819a02ee..12c857084 100644 --- a/app/soapbox/middleware/sounds.js +++ b/app/soapbox/middleware/sounds.js @@ -55,4 +55,4 @@ export default function soundsMiddleware() { return next(action); }; -}; +} diff --git a/app/soapbox/reducers/accounts.js b/app/soapbox/reducers/accounts.js index 943f0002c..8a00be845 100644 --- a/app/soapbox/reducers/accounts.js +++ b/app/soapbox/reducers/accounts.js @@ -226,4 +226,4 @@ export default function accounts(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/accounts_counters.js b/app/soapbox/reducers/accounts_counters.js index 0d54c1207..392599244 100644 --- a/app/soapbox/reducers/accounts_counters.js +++ b/app/soapbox/reducers/accounts_counters.js @@ -49,4 +49,4 @@ export default function accountsCounters(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/admin.js b/app/soapbox/reducers/admin.js index 4c3a0a09e..98fa3aa8a 100644 --- a/app/soapbox/reducers/admin.js +++ b/app/soapbox/reducers/admin.js @@ -147,4 +147,4 @@ export default function admin(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/admin_log.js b/app/soapbox/reducers/admin_log.js index 7bf305877..b8abc39e0 100644 --- a/app/soapbox/reducers/admin_log.js +++ b/app/soapbox/reducers/admin_log.js @@ -40,4 +40,4 @@ export default function admin_log(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/alerts.js b/app/soapbox/reducers/alerts.js index 9a0a7ccaf..f0b3f7968 100644 --- a/app/soapbox/reducers/alerts.js +++ b/app/soapbox/reducers/alerts.js @@ -23,4 +23,4 @@ export default function alerts(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/auth.js b/app/soapbox/reducers/auth.js index 29bc8fcd8..88cdd1a08 100644 --- a/app/soapbox/reducers/auth.js +++ b/app/soapbox/reducers/auth.js @@ -247,4 +247,4 @@ export default function auth(oldState = initialState, action) { } return state; -}; +} diff --git a/app/soapbox/reducers/backups.js b/app/soapbox/reducers/backups.js index 913038ee8..fdfece138 100644 --- a/app/soapbox/reducers/backups.js +++ b/app/soapbox/reducers/backups.js @@ -24,4 +24,4 @@ export default function backups(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/chat_message_lists.js b/app/soapbox/reducers/chat_message_lists.js index 3a7ec8610..777eddb19 100644 --- a/app/soapbox/reducers/chat_message_lists.js +++ b/app/soapbox/reducers/chat_message_lists.js @@ -63,4 +63,4 @@ export default function chatMessageLists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/chat_messages.js b/app/soapbox/reducers/chat_messages.js index ababe85bd..568725da3 100644 --- a/app/soapbox/reducers/chat_messages.js +++ b/app/soapbox/reducers/chat_messages.js @@ -53,4 +53,4 @@ export default function chatMessages(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/chats.js b/app/soapbox/reducers/chats.js index 0efb5361f..56c2c4678 100644 --- a/app/soapbox/reducers/chats.js +++ b/app/soapbox/reducers/chats.js @@ -30,4 +30,4 @@ export default function chats(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/compose.js b/app/soapbox/reducers/compose.js index b7e496ebe..344dad6c1 100644 --- a/app/soapbox/reducers/compose.js +++ b/app/soapbox/reducers/compose.js @@ -93,7 +93,7 @@ function statusToTextMentions(state, status, account) { .delete(account.get('acct')) .map(m => `@${m} `) .join(''); -}; +} function clearAll(state) { return state.withMutations(map => { @@ -112,7 +112,7 @@ function clearAll(state) { map.set('idempotencyKey', uuid()); map.set('schedule', null); }); -}; +} function appendMedia(state, media) { const prevSize = state.get('media_attachments').size; @@ -127,7 +127,7 @@ function appendMedia(state, media) { map.set('sensitive', true); } }); -}; +} function removeMedia(state, mediaId) { const prevSize = state.get('media_attachments').size; @@ -140,7 +140,7 @@ function removeMedia(state, mediaId) { map.set('sensitive', false); } }); -}; +} const insertSuggestion = (state, position, token, completion, path) => { return state.withMutations(map => { @@ -425,4 +425,4 @@ export default function compose(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/contexts.js b/app/soapbox/reducers/contexts.js index 1dd93d119..416c9cbe2 100644 --- a/app/soapbox/reducers/contexts.js +++ b/app/soapbox/reducers/contexts.js @@ -107,4 +107,4 @@ export default function replies(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/conversations.js b/app/soapbox/reducers/conversations.js index 9564bffcd..f7c9884b4 100644 --- a/app/soapbox/reducers/conversations.js +++ b/app/soapbox/reducers/conversations.js @@ -99,4 +99,4 @@ export default function conversations(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/custom_emojis.js b/app/soapbox/reducers/custom_emojis.js index 61d8feb1b..17bafe9eb 100644 --- a/app/soapbox/reducers/custom_emojis.js +++ b/app/soapbox/reducers/custom_emojis.js @@ -30,4 +30,4 @@ export default function custom_emojis(state = initialState, action) { } return state; -}; +} diff --git a/app/soapbox/reducers/domain_lists.js b/app/soapbox/reducers/domain_lists.js index eff97fbd6..6bf8cee68 100644 --- a/app/soapbox/reducers/domain_lists.js +++ b/app/soapbox/reducers/domain_lists.js @@ -22,4 +22,4 @@ export default function domainLists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/filters.js b/app/soapbox/reducers/filters.js index 33f0c6732..d0988e05d 100644 --- a/app/soapbox/reducers/filters.js +++ b/app/soapbox/reducers/filters.js @@ -8,4 +8,4 @@ export default function filters(state = ImmutableList(), action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/group_editor.js b/app/soapbox/reducers/group_editor.js index 257d62685..b77b8e508 100644 --- a/app/soapbox/reducers/group_editor.js +++ b/app/soapbox/reducers/group_editor.js @@ -54,4 +54,4 @@ export default function groupEditorReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/group_lists.js b/app/soapbox/reducers/group_lists.js index 089164e91..12944b106 100644 --- a/app/soapbox/reducers/group_lists.js +++ b/app/soapbox/reducers/group_lists.js @@ -18,4 +18,4 @@ export default function groupLists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/group_relationships.js b/app/soapbox/reducers/group_relationships.js index d3da08471..e5f28ef30 100644 --- a/app/soapbox/reducers/group_relationships.js +++ b/app/soapbox/reducers/group_relationships.js @@ -23,4 +23,4 @@ export default function group_relationships(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/groups.js b/app/soapbox/reducers/groups.js index a8b8be236..58b4f4237 100644 --- a/app/soapbox/reducers/groups.js +++ b/app/soapbox/reducers/groups.js @@ -30,4 +30,4 @@ export default function groups(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/height_cache.js b/app/soapbox/reducers/height_cache.js index 2f5716fae..77a59c8c5 100644 --- a/app/soapbox/reducers/height_cache.js +++ b/app/soapbox/reducers/height_cache.js @@ -20,4 +20,4 @@ export default function statuses(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/identity_proofs.js b/app/soapbox/reducers/identity_proofs.js index 58af0a5fa..d3034659f 100644 --- a/app/soapbox/reducers/identity_proofs.js +++ b/app/soapbox/reducers/identity_proofs.js @@ -22,4 +22,4 @@ export default function identityProofsReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/instance.js b/app/soapbox/reducers/instance.js index a29c7c0fd..7d08b3713 100644 --- a/app/soapbox/reducers/instance.js +++ b/app/soapbox/reducers/instance.js @@ -85,4 +85,4 @@ export default function instance(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/list_adder.js b/app/soapbox/reducers/list_adder.js index b8c1b0e26..b144610a5 100644 --- a/app/soapbox/reducers/list_adder.js +++ b/app/soapbox/reducers/list_adder.js @@ -44,4 +44,4 @@ export default function listAdderReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/list_editor.js b/app/soapbox/reducers/list_editor.js index 91e524dd5..6e020dbe6 100644 --- a/app/soapbox/reducers/list_editor.js +++ b/app/soapbox/reducers/list_editor.js @@ -93,4 +93,4 @@ export default function listEditorReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/lists.js b/app/soapbox/reducers/lists.js index f30ffbcbd..ba3e2b3cb 100644 --- a/app/soapbox/reducers/lists.js +++ b/app/soapbox/reducers/lists.js @@ -34,4 +34,4 @@ export default function lists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/me.js b/app/soapbox/reducers/me.js index a7bd1a94f..d42ace12d 100644 --- a/app/soapbox/reducers/me.js +++ b/app/soapbox/reducers/me.js @@ -22,4 +22,4 @@ export default function me(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/media_attachments.js b/app/soapbox/reducers/media_attachments.js index 7e67805dd..19400705a 100644 --- a/app/soapbox/reducers/media_attachments.js +++ b/app/soapbox/reducers/media_attachments.js @@ -37,4 +37,4 @@ export default function meta(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/meta.js b/app/soapbox/reducers/meta.js index f32283eca..858b22547 100644 --- a/app/soapbox/reducers/meta.js +++ b/app/soapbox/reducers/meta.js @@ -22,4 +22,4 @@ export default function meta(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/modal.js b/app/soapbox/reducers/modal.js index 599a2443e..6572d619e 100644 --- a/app/soapbox/reducers/modal.js +++ b/app/soapbox/reducers/modal.js @@ -14,4 +14,4 @@ export default function modal(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/notifications.js b/app/soapbox/reducers/notifications.js index 641038339..9d819f4f3 100644 --- a/app/soapbox/reducers/notifications.js +++ b/app/soapbox/reducers/notifications.js @@ -179,4 +179,4 @@ export default function notifications(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/patron.js b/app/soapbox/reducers/patron.js index ae639cdef..d05b156d7 100644 --- a/app/soapbox/reducers/patron.js +++ b/app/soapbox/reducers/patron.js @@ -20,4 +20,4 @@ export default function patron(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/push_notifications.js b/app/soapbox/reducers/push_notifications.js index 1ca54e6e1..d68845908 100644 --- a/app/soapbox/reducers/push_notifications.js +++ b/app/soapbox/reducers/push_notifications.js @@ -34,4 +34,4 @@ export default function push_subscriptions(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/relationships.js b/app/soapbox/reducers/relationships.js index af69c1b33..ec6ac6c14 100644 --- a/app/soapbox/reducers/relationships.js +++ b/app/soapbox/reducers/relationships.js @@ -120,4 +120,4 @@ export default function relationships(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/reports.js b/app/soapbox/reducers/reports.js index 7531c61a5..24d4cdc26 100644 --- a/app/soapbox/reducers/reports.js +++ b/app/soapbox/reducers/reports.js @@ -65,4 +65,4 @@ export default function reports(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/scheduled_statuses.js b/app/soapbox/reducers/scheduled_statuses.js index 2e304a8eb..f436968b6 100644 --- a/app/soapbox/reducers/scheduled_statuses.js +++ b/app/soapbox/reducers/scheduled_statuses.js @@ -33,4 +33,4 @@ export default function statuses(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/search.js b/app/soapbox/reducers/search.js index c9ad6bfa8..ed2b66016 100644 --- a/app/soapbox/reducers/search.js +++ b/app/soapbox/reducers/search.js @@ -62,4 +62,4 @@ export default function search(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/security.js b/app/soapbox/reducers/security.js index 93f6fa632..4fbeea042 100644 --- a/app/soapbox/reducers/security.js +++ b/app/soapbox/reducers/security.js @@ -18,4 +18,4 @@ export default function security(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/settings.js b/app/soapbox/reducers/settings.js index 343a3f9d9..9bfa3f356 100644 --- a/app/soapbox/reducers/settings.js +++ b/app/soapbox/reducers/settings.js @@ -38,4 +38,4 @@ export default function settings(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/sidebar.js b/app/soapbox/reducers/sidebar.js index 92d14839b..131411c2e 100644 --- a/app/soapbox/reducers/sidebar.js +++ b/app/soapbox/reducers/sidebar.js @@ -9,4 +9,4 @@ export default function sidebar(state={}, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/soapbox.js b/app/soapbox/reducers/soapbox.js index 5b7db02a8..2c8cd88f3 100644 --- a/app/soapbox/reducers/soapbox.js +++ b/app/soapbox/reducers/soapbox.js @@ -49,4 +49,4 @@ export default function soapbox(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/status_lists.js b/app/soapbox/reducers/status_lists.js index aec4dfc8d..7ac8184ac 100644 --- a/app/soapbox/reducers/status_lists.js +++ b/app/soapbox/reducers/status_lists.js @@ -141,4 +141,4 @@ export default function statusLists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/statuses.js b/app/soapbox/reducers/statuses.js index 202a36d77..f8c01ed2b 100644 --- a/app/soapbox/reducers/statuses.js +++ b/app/soapbox/reducers/statuses.js @@ -94,4 +94,4 @@ export default function statuses(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/suggestions.js b/app/soapbox/reducers/suggestions.js index 9f4b89d58..d33df026e 100644 --- a/app/soapbox/reducers/suggestions.js +++ b/app/soapbox/reducers/suggestions.js @@ -27,4 +27,4 @@ export default function suggestionsReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/timelines.js b/app/soapbox/reducers/timelines.js index 8ca050646..f6ff72b5f 100644 --- a/app/soapbox/reducers/timelines.js +++ b/app/soapbox/reducers/timelines.js @@ -253,4 +253,4 @@ export default function timelines(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/trends.js b/app/soapbox/reducers/trends.js index 06da8e4b8..be2e3e912 100644 --- a/app/soapbox/reducers/trends.js +++ b/app/soapbox/reducers/trends.js @@ -24,4 +24,4 @@ export default function trendsReducer(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/reducers/user_lists.js b/app/soapbox/reducers/user_lists.js index b96f3ce03..9afaf55b9 100644 --- a/app/soapbox/reducers/user_lists.js +++ b/app/soapbox/reducers/user_lists.js @@ -107,4 +107,4 @@ export default function userLists(state = initialState, action) { default: return state; } -}; +} diff --git a/app/soapbox/rtl.js b/app/soapbox/rtl.js index 1be335261..c557e3fd9 100644 --- a/app/soapbox/rtl.js +++ b/app/soapbox/rtl.js @@ -30,4 +30,4 @@ export function isRtl(text) { } return matches.length / text.length > 0.3; -}; +} diff --git a/app/soapbox/store/configureStore.js b/app/soapbox/store/configureStore.js index e18af842f..0e0d45c66 100644 --- a/app/soapbox/store/configureStore.js +++ b/app/soapbox/store/configureStore.js @@ -12,4 +12,4 @@ export default function configureStore() { errorsMiddleware(), soundsMiddleware(), ), window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f)); -}; +} diff --git a/app/soapbox/stream.js b/app/soapbox/stream.js index cd6a16bf7..98a2fd888 100644 --- a/app/soapbox/stream.js +++ b/app/soapbox/stream.js @@ -91,4 +91,4 @@ export default function getStream(streamingAPIBaseURL, accessToken, stream, { co }; return ws; -}; +} diff --git a/app/soapbox/uuid.js b/app/soapbox/uuid.js index 765897613..a10720cf8 100644 --- a/app/soapbox/uuid.js +++ b/app/soapbox/uuid.js @@ -2,4 +2,4 @@ export default function uuid(a) { return a ? (a^Math.random() * 16 >> a / 4).toString(16) : ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, uuid); -}; +} diff --git a/webpack/translationRunner.js b/webpack/translationRunner.js index a4da53c57..fb24b8ab6 100644 --- a/webpack/translationRunner.js +++ b/webpack/translationRunner.js @@ -215,4 +215,4 @@ if (problems.length > 0) { })) { process.exit(1); } -}; +}