diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-21 00:31:47 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 17:31:47 +0200 |
commit | 2e112e240666b62b8c3d4fa201fb24b841f6c92b (patch) | |
tree | f95f2eb5ae8156c10bf16894919d0ba5e3f34096 /app/javascript/mastodon/actions/statuses.js | |
parent | 812fe90ecaef58f1dbe16c3fdfea79e14e7bbc9d (diff) |
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
Diffstat (limited to 'app/javascript/mastodon/actions/statuses.js')
-rw-r--r-- | app/javascript/mastodon/actions/statuses.js | 30 |
1 files changed, 15 insertions, 15 deletions
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, }; }; |