about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/timelines.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-21 00:31:47 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-20 17:31:47 +0200
commit2e112e240666b62b8c3d4fa201fb24b841f6c92b (patch)
treef95f2eb5ae8156c10bf16894919d0ba5e3f34096 /app/javascript/mastodon/actions/timelines.js
parent812fe90ecaef58f1dbe16c3fdfea79e14e7bbc9d (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/timelines.js')
-rw-r--r--app/javascript/mastodon/actions/timelines.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/javascript/mastodon/actions/timelines.js b/app/javascript/mastodon/actions/timelines.js
index 5b37509a9..98e441cd1 100644
--- a/app/javascript/mastodon/actions/timelines.js
+++ b/app/javascript/mastodon/actions/timelines.js
@@ -1,4 +1,4 @@
-import api, { getLinks } from '../api'
+import api, { getLinks } from '../api';
 import Immutable from 'immutable';
 
 export const TIMELINE_UPDATE  = 'TIMELINE_UPDATE';
@@ -23,7 +23,7 @@ export function refreshTimelineSuccess(timeline, statuses, skipLoading, next) {
     timeline,
     statuses,
     skipLoading,
-    next
+    next,
   };
 };
 
@@ -35,7 +35,7 @@ export function updateTimeline(timeline, status) {
       type: TIMELINE_UPDATE,
       timeline,
       status,
-      references
+      references,
     });
   };
 };
@@ -51,7 +51,7 @@ export function deleteFromTimelines(id) {
       id,
       accountId,
       references,
-      reblogOf
+      reblogOf,
     });
   };
 };
@@ -61,7 +61,7 @@ export function refreshTimelineRequest(timeline, id, skipLoading) {
     type: TIMELINE_REFRESH_REQUEST,
     timeline,
     id,
-    skipLoading
+    skipLoading,
   };
 };
 
@@ -106,7 +106,7 @@ export function refreshTimelineFail(timeline, error, skipLoading) {
     type: TIMELINE_REFRESH_FAIL,
     timeline,
     error,
-    skipLoading
+    skipLoading,
   };
 };
 
@@ -130,8 +130,8 @@ export function expandTimeline(timeline) {
       params: {
         ...params,
         max_id: lastId,
-        limit: 10
-      }
+        limit: 10,
+      },
     }).then(response => {
       const next = getLinks(response).refs.find(link => link.rel === 'next');
       dispatch(expandTimelineSuccess(timeline, response.data, next ? next.uri : null));
@@ -144,7 +144,7 @@ export function expandTimeline(timeline) {
 export function expandTimelineRequest(timeline) {
   return {
     type: TIMELINE_EXPAND_REQUEST,
-    timeline
+    timeline,
   };
 };
 
@@ -153,7 +153,7 @@ export function expandTimelineSuccess(timeline, statuses, next) {
     type: TIMELINE_EXPAND_SUCCESS,
     timeline,
     statuses,
-    next
+    next,
   };
 };
 
@@ -161,7 +161,7 @@ export function expandTimelineFail(timeline, error) {
   return {
     type: TIMELINE_EXPAND_FAIL,
     timeline,
-    error
+    error,
   };
 };
 
@@ -169,20 +169,20 @@ export function scrollTopTimeline(timeline, top) {
   return {
     type: TIMELINE_SCROLL_TOP,
     timeline,
-    top
+    top,
   };
 };
 
 export function connectTimeline(timeline) {
   return {
     type: TIMELINE_CONNECT,
-    timeline
+    timeline,
   };
 };
 
 export function disconnectTimeline(timeline) {
   return {
     type: TIMELINE_DISCONNECT,
-    timeline
+    timeline,
   };
 };