From 2e112e240666b62b8c3d4fa201fb24b841f6c92b Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 21 May 2017 00:31:47 +0900 Subject: Improve eslint rules (#3147) * Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix --- app/javascript/mastodon/actions/statuses.js | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'app/javascript/mastodon/actions/statuses.js') diff --git a/app/javascript/mastodon/actions/statuses.js b/app/javascript/mastodon/actions/statuses.js index 5eb9bf817..6956447ba 100644 --- a/app/javascript/mastodon/actions/statuses.js +++ b/app/javascript/mastodon/actions/statuses.js @@ -27,7 +27,7 @@ export function fetchStatusRequest(id, skipLoading) { return { type: STATUS_FETCH_REQUEST, id, - skipLoading + skipLoading, }; }; @@ -56,7 +56,7 @@ export function fetchStatusSuccess(status, skipLoading) { return { type: STATUS_FETCH_SUCCESS, status, - skipLoading + skipLoading, }; }; @@ -66,7 +66,7 @@ export function fetchStatusFail(id, error, skipLoading) { id, error, skipLoading, - skipAlert: true + skipAlert: true, }; }; @@ -86,14 +86,14 @@ export function deleteStatus(id) { export function deleteStatusRequest(id) { return { type: STATUS_DELETE_REQUEST, - id: id + id: id, }; }; export function deleteStatusSuccess(id) { return { type: STATUS_DELETE_SUCCESS, - id: id + id: id, }; }; @@ -101,7 +101,7 @@ export function deleteStatusFail(id, error) { return { type: STATUS_DELETE_FAIL, id: id, - error: error + error: error, }; }; @@ -125,7 +125,7 @@ export function fetchContext(id) { export function fetchContextRequest(id) { return { type: CONTEXT_FETCH_REQUEST, - id + id, }; }; @@ -135,7 +135,7 @@ export function fetchContextSuccess(id, ancestors, descendants) { id, ancestors, descendants, - statuses: ancestors.concat(descendants) + statuses: ancestors.concat(descendants), }; }; @@ -144,7 +144,7 @@ export function fetchContextFail(id, error) { type: CONTEXT_FETCH_FAIL, id, error, - skipAlert: true + skipAlert: true, }; }; @@ -163,14 +163,14 @@ export function muteStatus(id) { export function muteStatusRequest(id) { return { type: STATUS_MUTE_REQUEST, - id + id, }; }; export function muteStatusSuccess(id) { return { type: STATUS_MUTE_SUCCESS, - id + id, }; }; @@ -178,7 +178,7 @@ export function muteStatusFail(id, error) { return { type: STATUS_MUTE_FAIL, id, - error + error, }; }; @@ -197,14 +197,14 @@ export function unmuteStatus(id) { export function unmuteStatusRequest(id) { return { type: STATUS_UNMUTE_REQUEST, - id + id, }; }; export function unmuteStatusSuccess(id) { return { type: STATUS_UNMUTE_SUCCESS, - id + id, }; }; @@ -212,6 +212,6 @@ export function unmuteStatusFail(id, error) { return { type: STATUS_UNMUTE_FAIL, id, - error + error, }; }; -- cgit